Submission #156877
Source Code Expand
#include<stdio.h> int main(void) { int x, y; puts("1から9までの値を入力してください。"); scanf("%d", &x); if(x >= 1 && x <= 9) { y = x % 3; if(y == 0) printf("YES\n"); else if(y <= 2) printf("NO\n"); } }
Submission Info
Submission Time | |
---|---|
Task | A - 世界のFizzBuzz |
User | tamagr |
Language | C (GCC 4.6.4) |
Score | 0 |
Code Size | 256 Byte |
Status | RE |
Exec Time | 19 ms |
Memory | 800 KB |
Compile Error
./Main.c: In function ‘main’: ./Main.c:9:6: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 0 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | test_1.txt, test_2.txt, test_3.txt, test_4.txt, test_5.txt, test_6.txt, test_7.txt, test_8.txt, test_9.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | RE | 19 ms | 700 KB |
sample_02.txt | RE | 19 ms | 700 KB |
sample_03.txt | RE | 18 ms | 800 KB |
test_1.txt | RE | 19 ms | 796 KB |
test_2.txt | RE | 18 ms | 704 KB |
test_3.txt | RE | 19 ms | 796 KB |
test_4.txt | RE | 18 ms | 700 KB |
test_5.txt | RE | 18 ms | 704 KB |
test_6.txt | RE | 18 ms | 704 KB |
test_7.txt | RE | 19 ms | 700 KB |
test_8.txt | RE | 19 ms | 704 KB |
test_9.txt | RE | 19 ms | 704 KB |