Submission #1164350
Source Code Expand
#define _CRT_SECURE_NO_WARNINGS #include <cstdio> #include <cstring> using namespace std; int main() { char X[17]; X[0] = 'C'; X[1] = 'O'; X[2] = 'D'; X[3] = 'E'; X[4] = 'F'; X[5] = 'E'; X[6] = 'S'; X[7] = 'T'; X[8] = 'I'; X[9] = 'V'; X[10] = 'A'; X[11] = 'L'; X[12] = '2'; X[13] = '0'; X[14] = '1'; X[15] = '6'; X[16] = '\0'; char S[17]; if (scanf("%s", S) < 1) return 0; int cnt = 0; for (int i = 0; i < strlen(S); i++) if (X[i] != S[i]) cnt++; printf("%d\n", cnt); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Signboard |
User | ShinjiSHIBATA |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 619 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 128 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | s1.txt, s2.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, s1.txt, s2.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | AC | 1 ms | 128 KB |
02.txt | AC | 1 ms | 128 KB |
03.txt | AC | 1 ms | 128 KB |
04.txt | AC | 1 ms | 128 KB |
05.txt | AC | 1 ms | 128 KB |
06.txt | AC | 1 ms | 128 KB |
07.txt | AC | 1 ms | 128 KB |
08.txt | AC | 1 ms | 128 KB |
09.txt | AC | 1 ms | 128 KB |
s1.txt | AC | 0 ms | 128 KB |
s2.txt | AC | 0 ms | 128 KB |