結果
| 問題 | No.232 めぐるはめぐる (2) |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2016-06-02 04:24:51 |
| 言語 | C90 (gcc 12.4.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 315 bytes |
| 記録 | |
| コンパイル時間 | 289 ms |
| コンパイル使用メモリ | 28,416 KB |
| 最終ジャッジ日時 | 2026-02-23 21:26:12 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 11 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | t,y,x;
| ^
main.c: In function ‘main’:
main.c:3:9: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
3 | scanf("%d%d%d",&t,&x,&y);
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | t,y,x;
ソースコード
t,y,x;
main(){
scanf("%d%d%d",&t,&x,&y);
if(t<x|t<y||t+x+y==1)puts("NO");
else{
puts("YES");
while(t){
if(x<t-1){putchar('<');x++;}
else if(x!=0){putchar('>');x--;}
if(y%2==t%2){
if(y<t-1){putchar('v');y++;}
else if(y!=0){putchar('^');y--;}
}
putchar('\n');
t--;
}
}
return 0;
}
testestest