結果
| 問題 |
No.204 ゴールデン・ウィーク(2)
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2016-03-09 23:21:03 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 187 bytes |
| コンパイル時間 | 1,063 ms |
| コンパイル使用メモリ | 19,584 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-13 13:57:26 |
| 合計ジャッジ時間 | 2,229 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 WA * 15 |
コンパイルメッセージ
main.c:2:1: warning: data definition has no type or storage class
2 | p,q,r=14,d,n,m;main(t){for(scanf("%d",&d);n=getchar(),~t;t=n-10?n:t)n-10?n-'o'?t<n|n<0?m=r>d?M(m,M(p,q)+d):M(m,p+q+r),p=q,q=0,r=1:r++:q++:0;printf("%d",M(m,p+d));}
| ^
main.c:2:1: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int]
main.c:2:3: warning: type defaults to ‘int’ in declaration of ‘q’ [-Wimplicit-int]
2 | p,q,r=14,d,n,m;main(t){for(scanf("%d",&d);n=getchar(),~t;t=n-10?n:t)n-10?n-'o'?t<n|n<0?m=r>d?M(m,M(p,q)+d):M(m,p+q+r),p=q,q=0,r=1:r++:q++:0;printf("%d",M(m,p+d));}
| ^
main.c:2:5: warning: type defaults to ‘int’ in declaration of ‘r’ [-Wimplicit-int]
2 | p,q,r=14,d,n,m;main(t){for(scanf("%d",&d);n=getchar(),~t;t=n-10?n:t)n-10?n-'o'?t<n|n<0?m=r>d?M(m,M(p,q)+d):M(m,p+q+r),p=q,q=0,r=1:r++:q++:0;printf("%d",M(m,p+d));}
| ^
main.c:2:10: warning: type defaults to ‘int’ in declaration of ‘d’ [-Wimplicit-int]
2 | p,q,r=14,d,n,m;main(t){for(scanf("%d",&d);n=getchar(),~t;t=n-10?n:t)n-10?n-'o'?t<n|n<0?m=r>d?M(m,M(p,q)+d):M(m,p+q+r),p=q,q=0,r=1:r++:q++:0;printf("%d",M(m,p+d));}
| ^
main.c:2:12: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int]
2 | p,q,r=14,d,n,m;main(t){for(scanf("%d",&d);n=getchar(),~t;t=n-10?n:t)n-10?n-'o'?t<n|n<0?m=r>d?M(m,M(p,q)+d):M(m,p+q+r),p=q,q=0,r=1:r++:q++:0;printf("%d",M(m,p+d));}
| ^
main.c:2:14: warning: type defaults to ‘int’ in declaration of ‘m’ [-Wimplicit-int]
2 | p,q,r=14,d,n,m;main(t){for(scanf("%d",&d);n=getchar(),~t;t=n-10?n:t)n-10?n-'o'?t<n|n<0?m=r>d?M(m,M(p,q)+d):M(m,p+q+r),p=q,q=0,r=1:r++:q++:0;printf("%d",M(m,p+d));}
| ^
main.c:2:16: warning: return type defaults to ‘int’ [-Wimplicit-int]
2 | p,q,r=14,d,n,m;main(t){for(scanf("%d",&d);n=getchar(),~t;t=n-10?n:t)n-10?n-'o'?t<n|n<0?m=r>d?M(m,M(p,q)+d):M(m,p+q+r),p=q,q=0,r=1:r++:q++:0;printf("%d",M(m,p+d));}
|
ソースコード
#define M(a,b)(a<b?b:a)
p,q,r=14,d,n,m;main(t){for(scanf("%d",&d);n=getchar(),~t;t=n-10?n:t)n-10?n-'o'?t<n|n<0?m=r>d?M(m,M(p,q)+d):M(m,p+q+r),p=q,q=0,r=1:r++:q++:0;printf("%d",M(m,p+d));}
testestest