結果
| 問題 | No.100 直列あみだくじ |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2017-02-28 19:45:58 |
| 言語 | C90(gcc15) (gcc 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 119 bytes |
| 記録 | |
| コンパイル時間 | 145 ms |
| コンパイル使用メモリ | 36,440 KB |
| 最終ジャッジ日時 | 2026-02-24 00:26:27 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 19 WA * 26 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | s,a[51],y,i;main(c){for(;~scanf("%d",a+i)?y=++i:(y=a[y])?a[y]=0,++c:(s^=c%2<<c/2,c=1,y=--i););s=!puts(s/2?"No":"Yes");}
| ^
main.c: In function 'main':
main.c:1:27: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | s,a[51],y,i;main(c){for(;~scanf("%d",a+i)?y=++i:(y=a[y])?a[y]=0,++c:(s^=c%2<<c/2,c=1,y=--i););s=!puts(s/2?"No":"Yes");}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | s,a[51],y,i;main(c){for(;~scanf("%d",a+i)?y=++i:(y=a[y])?a[y]=0,++c:(s^=c%2<<c/2,c=1,y=--i););s=!puts(s/2?"No":"Yes");}
ソースコード
s,a[51],y,i;main(c){for(;~scanf("%d",a+i)?y=++i:(y=a[y])?a[y]=0,++c:(s^=c%2<<c/2,c=1,y=--i););s=!puts(s/2?"No":"Yes");}
testestest