Submission #221256
Source Code Expand
#include <stdio.h>
int main(){
int f_face,b_face,sum_dice = 7;
scanf("%d",&f_face);
b_face = sum_dice - f_face;
printf("%d\n",b_face);
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - サイコロ |
| User | canonxex |
| Language | C (GCC 4.6.4) |
| Score | 100 |
| Code Size | 162 Byte |
| Status | AC |
| Exec Time | 21 ms |
| Memory | 800 KiB |
Compile Error
./Main.c: In function ‘main’: ./Main.c:4:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
Judge Result
| Set Name | All | ||
|---|---|---|---|
| Score / Max Score | 100 / 100 | ||
| Status |
|
| Set Name | Test Cases |
|---|---|
| All | 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 1.txt | AC | 19 ms | 800 KiB |
| 2.txt | AC | 20 ms | 716 KiB |
| 3.txt | AC | 19 ms | 708 KiB |
| 4.txt | AC | 20 ms | 800 KiB |
| 5.txt | AC | 20 ms | 704 KiB |
| 6.txt | AC | 21 ms | 708 KiB |