結果
| 問題 | No.204 ゴールデン・ウィーク(2) |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2016-07-16 16:08:09 |
| 言語 | C90 (gcc 12.4.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 166 bytes |
| 記録 | |
| コンパイル時間 | 171 ms |
| コンパイル使用メモリ | 36,064 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-12-30 17:50:47 |
| 合計ジャッジ時間 | 1,953 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 29 WA * 17 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | p,q,r=14,d,m,t;main(n){for(scanf("%d",&d);~t;n-10?n&16?t%8?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=getchar();m=!printf("%d",p+d>m?p+d:m);}
| ^
main.c: In function 'main':
main.c:1:28: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | p,q,r=14,d,m,t;main(n){for(scanf("%d",&d);~t;n-10?n&16?t%8?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=getchar();m=!printf("%d",p+d>m?p+d:m);}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | p,q,r=14,d,m,t;main(n){for(scanf("%d",&d);~t;n-10?n&16?t%8?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=getchar();m=!printf("%d",p+d>m?p+d:m);}
main.c:1:141: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
1 | p,q,r=14,d,m,t;main(n){for(scanf("%d",&d);~t;n-10?n&16?t%8?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=getchar();m=!printf("%d",p+d>m?p+d:m);}
| ^~~~~~
main.c:1:141: note: include '<stdio.h>' or provide a declaration of 'printf'
ソースコード
p,q,r=14,d,m,t;main(n){for(scanf("%d",&d);~t;n-10?n&16?t%8?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=getchar();m=!printf("%d",p+d>m?p+d:m);}
testestest