結果
| 問題 | No.232 めぐるはめぐる (2) |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2017-12-02 09:53:22 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 1,000 ms |
| コード長 | 141 bytes |
| 記録 | |
| コンパイル時間 | 105 ms |
| コンパイル使用メモリ | 29,640 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-08 16:15:06 |
| 合計ジャッジ時間 | 1,091 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | t,y;main(x){scanf("%d%d%d",&t,&y,&x);for(puts(t<x|t<y|t+x+y<2?t=0,"NO":"YES");t--;puts(!x--?x=1,"<"+!t:">"))y-t&1&&putchar(!y--?y=1,118:94);}
| ^
main.c: In function ‘main’:
main.c:1:13: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | t,y;main(x){scanf("%d%d%d",&t,&y,&x);for(puts(t<x|t<y|t+x+y<2?t=0,"NO":"YES");t--;puts(!x--?x=1,"<"+!t:">"))y-t&1&&putchar(!y--?y=1,118:94);}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | t,y;main(x){scanf("%d%d%d",&t,&y,&x);for(puts(t<x|t<y|t+x+y<2?t=0,"NO":"YES");t--;puts(!x--?x=1,"<"+!t:">"))y-t&1&&putchar(!y--?y=1,118:94);}
ソースコード
t,y;main(x){scanf("%d%d%d",&t,&y,&x);for(puts(t<x|t<y|t+x+y<2?t=0,"NO":"YES");t--;puts(!x--?x=1,"<"+!t:">"))y-t&1&&putchar(!y--?y=1,118:94);}
testestest