提出 #29701743
ソースコード 拡げる
#include<stdio.h>
int main(void)
{
int a[10],x,y,w,j,i;
for(i=0;i<10;i++){
scanf("%d",&a[i]);
}
x=a[0];
y=a[x];
printf("%d",a[y]);
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Digit Machine |
| ユーザ | TCSP |
| 言語 | C (GCC 9.2.1) |
| 得点 | 100 |
| コード長 | 177 Byte |
| 結果 | AC |
| 実行時間 | 5 ms |
| メモリ | 1724 KiB |
コンパイルエラー
./Main.c: In function ‘main’:
./Main.c:6:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
6 | scanf("%d",&a[i]);
| ^~~~~~~~~~~~~~~~~
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | example0.txt, example1.txt, example2.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, example0.txt, example1.txt, example2.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 000.txt | AC | 5 ms | 1724 KiB |
| 001.txt | AC | 1 ms | 1648 KiB |
| 002.txt | AC | 3 ms | 1652 KiB |
| 003.txt | AC | 1 ms | 1724 KiB |
| 004.txt | AC | 1 ms | 1648 KiB |
| 005.txt | AC | 1 ms | 1680 KiB |
| 006.txt | AC | 1 ms | 1632 KiB |
| example0.txt | AC | 1 ms | 1652 KiB |
| example1.txt | AC | 2 ms | 1684 KiB |
| example2.txt | AC | 1 ms | 1684 KiB |