結果
| 問題 | No.424 立体迷路 |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2016-10-04 18:22:51 |
| 言語 | C90 (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 275 bytes |
| 記録 | |
| コンパイル時間 | 210 ms |
| コンパイル使用メモリ | 32,728 KB |
| 最終ジャッジ日時 | 2026-02-23 22:29:14 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 21 |
コンパイルメッセージ
main.c:1:9: warning: missing whitespace after the macro name
1 | #define A,t=m[x][y],t=abs(s=t-m[x+u][y+v])<2|(t==m[x+u*2][y+v*2]&s>1)*2,f(x+u*t,y+v*t),t=u,u=-v,v=t
| ^
main.c:2:1: warning: data definition has no type or storage class
2 | u,v=1;a,b;char*r="NO",m[120][60];f(x,y,s,t){m[y+60][x]++||(r=x-a|y-b?r:"YES"A A A A);}main(i,x,y){for(scanf("%*d%*d%d%d%d%d ",&x,&y,&a,&b);gets(m[i++]+1););f(x,y);a=!puts(r);}
| ^
main.c:2:7: warning: data definition has no type or storage class
2 | u,v=1;a,b;char*r="NO",m[120][60];f(x,y,s,t){m[y+60][x]++||(r=x-a|y-b?r:"YES"A A A A);}main(i,x,y){for(scanf("%*d%*d%d%d%d%d ",&x,&y,&a,&b);gets(m[i++]+1););f(x,y);a=!puts(r);}
| ^
main.c: In function ‘main’:
main.c:2:103: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
2 | u,v=1;a,b;char*r="NO",m[120][60];f(x,y,s,t){m[y+60][x]++||(r=x-a|y-b?r:"YES"A A A A);}main(i,x,y){for(scanf("%*d%*d%d%d%d%d ",&x,&y,&a,&b);gets(m[i++]+1););f(x,y);a=!puts(r);}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | #define A,t=m[x][y],t=abs(s=t-m[x+u][y+v])<2|(t==m[x+u*2][y+v*2]&s>1)*2,f(x+u*t,y+v*t),t=u,u=-v,v=t
/usr/bin/ld: /tmp/ccoGqbEz.o: in function `main':
main.c:(.text.startup+0x62): 警告: the `gets' function is dangerous and should not be used.
ソースコード
#define A,t=m[x][y],t=abs(s=t-m[x+u][y+v])<2|(t==m[x+u*2][y+v*2]&s>1)*2,f(x+u*t,y+v*t),t=u,u=-v,v=t
u,v=1;a,b;char*r="NO",m[120][60];f(x,y,s,t){m[y+60][x]++||(r=x-a|y-b?r:"YES"A A A A);}main(i,x,y){for(scanf("%*d%*d%d%d%d%d ",&x,&y,&a,&b);gets(m[i++]+1););f(x,y);a=!puts(r);}
tails