提出 #560208
ソースコード 拡げる
#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;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | C - 数を3つ選ぶマン |
| ユーザ | abcdefg |
| 言語 | C (GCC 4.9.2) |
| 得点 | 0 |
| コード長 | 171 Byte |
| 結果 | WA |
| 実行時間 | 25 ms |
| メモリ | 800 KiB |
コンパイルエラー
./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);
^
ジャッジ結果
| セット名 | Sample | All | ||||||
|---|---|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 0 / 100 | ||||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 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 |