Submission #213694
Source Code Expand
#include<stdio.h> #include<math.h> int main(){ int a,b,c; scanf("%d %d",&a,&b); if(abs(10 + a - b) % 10 < abs(a - 10 - b) % 10){c = abs(10 + a - b) % 10;} else{c = abs(a - 10 - b) % 10;} printf("%d\n",c); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - A |
User | intnincrement |
Language | C (GCC 4.6.4) |
Score | 0 |
Code Size | 229 Byte |
Status | WA |
Exec Time | 49 ms |
Memory | 804 KB |
Compile Error
./Main.c: In function ‘main’: ./Main.c:6: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 | A.txt, B.txt, C.txt, D.txt, E.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
A.txt | WA | 19 ms | 804 KB |
B.txt | WA | 19 ms | 696 KB |
C.txt | WA | 20 ms | 656 KB |
D.txt | WA | 19 ms | 804 KB |
E.txt | WA | 49 ms | 800 KB |