結果
| 問題 | No.424 立体迷路 |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2017-02-08 07:40:16 |
| 言語 | C90 (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 287 bytes |
| 記録 | |
| コンパイル時間 | 193 ms |
| コンパイル使用メモリ | 39,972 KB |
| 最終ジャッジ日時 | 2026-02-24 00:17:29 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 21 |
コンパイルメッセージ
main.c:1:9: warning: missing whitespace after the macro name
1 | #define G,abs(t=s[p][q]-s[p+n][q+m])<2&&f(p+n,q+m),s[p+n+n][q+m+m]-s[p][q]|t<0||f(p+n+n,q+m+m),t=n,n=m,m=-t
| ^
main.c:2:17: warning: data definition has no type or storage class
2 | char s[199][99];n=1,m;
| ^
main.c: In function 'main':
main.c:4:21: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
4 | main(i,a,b,x,y){for(scanf("%*d%*d%d%d%d%d ",&a,&b,&x,&y);gets(s[++i]+2););f(a+1,b+1);n=!puts(s[x+99][y+1]?"YES":"NO");}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | #define G,abs(t=s[p][q]-s[p+n][q+m])<2&&f(p+n,q+m),s[p+n+n][q+m+m]-s[p][q]|t<0||f(p+n+n,q+m+m),t=n,n=m,m=-t
/usr/bin/ld: /tmp/ccP8c2SM.o: in function `main':
main.c:(.text.startup+0x5a): 警告: the `gets' function is dangerous and should not be used.
ソースコード
#define G,abs(t=s[p][q]-s[p+n][q+m])<2&&f(p+n,q+m),s[p+n+n][q+m+m]-s[p][q]|t<0||f(p+n+n,q+m+m),t=n,n=m,m=-t
char s[199][99];n=1,m;
f(p,q,t){s[p+98][q]++||(1 G G G G);}
main(i,a,b,x,y){for(scanf("%*d%*d%d%d%d%d ",&a,&b,&x,&y);gets(s[++i]+2););f(a+1,b+1);n=!puts(s[x+99][y+1]?"YES":"NO");}
testestest