Submission #52857848
Source Code Expand
#include<stdio.h>
int main(){
int i,aoki[8],takahashi[9],quu;
for(i=0;i<9;i++){
scanf("%d",&takahashi[i]);
quu+=takahashi[i];
}
for(i=0;i<8;i++){
scanf("%d",&aoki[i]);
quu-=aoki[i];
}
printf("%d",quu);
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - The bottom of the ninth |
| User | sinn_ |
| Language | C (gcc 12.2.0) |
| Score | 100 |
| Code Size | 243 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 1740 KiB |
Compile Error
Main.c: In function ‘main’:
Main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d",&takahashi[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Main.c:9:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
9 | scanf("%d",&aoki[i]);
| ^~~~~~~~~~~~~~~~~~~~
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example_00.txt, example_01.txt |
| All | example_00.txt, example_01.txt, hand_00.txt, hand_01.txt, hand_02.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| example_00.txt | AC | 1 ms | 1560 KiB |
| example_01.txt | AC | 1 ms | 1700 KiB |
| hand_00.txt | AC | 0 ms | 1620 KiB |
| hand_01.txt | AC | 0 ms | 1740 KiB |
| hand_02.txt | AC | 1 ms | 1628 KiB |
| random_00.txt | AC | 1 ms | 1728 KiB |
| random_01.txt | AC | 0 ms | 1616 KiB |
| random_02.txt | AC | 0 ms | 1620 KiB |
| random_03.txt | AC | 1 ms | 1612 KiB |
| random_04.txt | AC | 0 ms | 1636 KiB |
| random_05.txt | AC | 1 ms | 1560 KiB |
| random_06.txt | AC | 1 ms | 1636 KiB |