Submission #3411867
Source Code Expand
#include<stdio.h> int main(void) { char s[11]; char t[11]; int cntS = 0; int cntT = 0; scanf("%s", s); scanf("%s", t); int sNumber = strlen(s); for (int i = 0; i <= sNumber; i++) { if (s[i] == '@' || s[i] == 'a' || s[i] == 't' || s[i] == 'c' || s[i] == 'o' || s[i] == 'd' || s[i] == 'e' || s[i] == 'r') { } else if (s[i] == t[i]) { } if(s[i] != t[i] && t[i] == '@' && t[i] == 'a' && t[i] == 't' && t[i] == 'c' && t[i] == 'o' && t[i] == 'd' && t[i] == 'e' && t[i] == 'r') { cntS++; } if (t[i] == '@' || t[i] == 'a' || t[i] == 't' || t[i] == 'c' || t[i] == 'o' || t[i] == 'd' || t[i] == 'e' || t[i] == 'r') { } else if (t[i] == s[i]) { } if (s[i] != t[i] && t[i] == '@' && t[i] == 'a' && t[i] == 't' && t[i] == 'c' && t[i] == 'o' && t[i] == 'd' && t[i] == 'e' && t[i] == 'r') { cntT++; } } if (cntS != 0 || cntT != 0) { printf("You will lose\n"); } else if (cntS == 0 && cntT == 0) { printf("You can win\n"); } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - AtCoder社の給料 |
User | vx2oa |
Language | C (GCC 5.4.1) |
Score | 0 |
Code Size | 1017 Byte |
Status | WA |
Exec Time | 2 ms |
Memory | 256 KB |
Compile Error
./Main.c: In function ‘main’: ./Main.c:12:16: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration] int sNumber = strlen(s); ^ ./Main.c:12:16: warning: incompatible implicit declaration of built-in function ‘strlen’ ./Main.c:12:16: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ ./Main.c:9:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", s); ^ ./Main.c:10:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", t); ^
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 0 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | 00_sample_01.txt, 00_sample_02.txt, test_100.txt, test_14.txt, test_29.txt, test_4.txt, test_42.txt, test_48.txt, test_54.txt, test_59.txt, test_71.txt, test_72.txt, test_84.txt, test_96.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | WA | 0 ms | 128 KB |
00_sample_02.txt | WA | 1 ms | 128 KB |
test_100.txt | WA | 0 ms | 128 KB |
test_14.txt | WA | 0 ms | 128 KB |
test_29.txt | WA | 0 ms | 128 KB |
test_4.txt | WA | 0 ms | 128 KB |
test_42.txt | WA | 0 ms | 128 KB |
test_48.txt | WA | 0 ms | 128 KB |
test_54.txt | WA | 2 ms | 256 KB |
test_59.txt | WA | 0 ms | 128 KB |
test_71.txt | WA | 0 ms | 128 KB |
test_72.txt | WA | 0 ms | 128 KB |
test_84.txt | WA | 1 ms | 128 KB |
test_96.txt | WA | 1 ms | 128 KB |