Submission #560208
Source Code Expand
#include <stdio.h>
int main()
{
int N[5], *n = N;
scanf("%d %d %d %d %d", n++, n++, n++, n++, n);
printf("%d\n", *n-- + *n-- + *(n-2));
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | C - 数を3つ選ぶマン |
| User | abcdefg |
| Language | C (GCC 4.9.2) |
| Score | 0 |
| Code Size | 171 Byte |
| Status | WA |
| Exec Time | 25 ms |
| Memory | 800 KiB |
Compile Error
./Main.c: In function ‘main’:
./Main.c:7:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d %d", n++, n++, n++, n++, n);
^
Judge Result
| Set Name | Sample | All | ||||||
|---|---|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 0 / 100 | ||||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example_0.txt, example_1.txt |
| All | example_0.txt, example_1.txt, handmade_0.txt, handmade_1.txt, handmade_2.txt, handmade_3.txt, handmade_4.txt, handmade_5.txt, random_0.txt, random_1.txt, random_2.txt, random_3.txt, random_4.txt, example_0.txt, example_1.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| example_0.txt | AC | 24 ms | 708 KiB |
| example_1.txt | AC | 22 ms | 700 KiB |
| handmade_0.txt | AC | 24 ms | 800 KiB |
| handmade_1.txt | AC | 21 ms | 704 KiB |
| handmade_2.txt | AC | 22 ms | 800 KiB |
| handmade_3.txt | AC | 24 ms | 700 KiB |
| handmade_4.txt | AC | 25 ms | 792 KiB |
| handmade_5.txt | WA | 24 ms | 800 KiB |
| random_0.txt | WA | 24 ms | 800 KiB |
| random_1.txt | WA | 24 ms | 800 KiB |
| random_2.txt | WA | 24 ms | 796 KiB |
| random_3.txt | AC | 25 ms | 800 KiB |
| random_4.txt | AC | 22 ms | 800 KiB |