結果
問題 | No.9 モンスターのレベル上げ |
ユーザー | testestest |
提出日時 | 2016-06-29 15:57:41 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 238 bytes |
コンパイル時間 | 481 ms |
コンパイル使用メモリ | 25,836 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-06 04:51:00 |
合計ジャッジ時間 | 35,053 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,376 KB |
testcase_01 | AC | 0 ms
4,376 KB |
testcase_02 | AC | 3,863 ms
4,376 KB |
testcase_03 | AC | 2,708 ms
4,376 KB |
testcase_04 | AC | 1,116 ms
4,376 KB |
testcase_05 | AC | 623 ms
4,376 KB |
testcase_06 | AC | 139 ms
4,376 KB |
testcase_07 | AC | 2 ms
4,376 KB |
testcase_08 | AC | 216 ms
4,376 KB |
testcase_09 | AC | 3,584 ms
4,380 KB |
testcase_10 | WA | - |
testcase_11 | AC | 3,772 ms
4,380 KB |
testcase_12 | AC | 3,768 ms
4,380 KB |
testcase_13 | AC | 3,767 ms
4,376 KB |
testcase_14 | AC | 3,659 ms
4,376 KB |
testcase_15 | AC | 3,256 ms
4,376 KB |
testcase_16 | AC | 12 ms
4,376 KB |
testcase_17 | AC | 1,696 ms
4,380 KB |
testcase_18 | AC | 1,354 ms
4,380 KB |
testcase_19 | AC | 6 ms
4,380 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class a[4000],t[2000],i,j,k,p,M;main(p){for(;~scanf("%d",a+i++););for(M=i=*a;i--;M=M>k?k:M){for(k=*a;k--;t[k]=a[k+1]*2e3);for(;j<*a;t[p]+=a[(i+j++)%*a-~*a]/2*2e3+1)for(k=*a;k--;t[k]<t[p]?p=k:0);for(;j;k=fmax(k,t[--j]%2000));}M=!printf("%d",M);} ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] main.c:1:9: warning: type defaults to ‘int’ in declaration of ‘t’ [-Wimplicit-int] a[4000],t[2000],i,j,k,p,M;main(p){for(;~scanf("%d",a+i++););for(M=i=*a;i--;M=M>k?k:M){for(k=*a;k--;t[k]=a[k+1]*2e3);for(;j<*a;t[p]+=a[(i+j++)%*a-~*a]/2*2e3+1)for(k=*a;k--;t[k]<t[p]?p=k:0);for(;j;k=fmax(k,t[--j]%2000));}M=!printf("%d",M);} ^ main.c:1:17: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] a[4000],t[2000],i,j,k,p,M;main(p){for(;~scanf("%d",a+i++););for(M=i=*a;i--;M=M>k?k:M){for(k=*a;k--;t[k]=a[k+1]*2e3);for(;j<*a;t[p]+=a[(i+j++)%*a-~*a]/2*2e3+1)for(k=*a;k--;t[k]<t[p]?p=k:0);for(;j;k=fmax(k,t[--j]%2000));}M=!printf("%d",M);} ^ main.c:1:19: warning: type defaults to ‘int’ in declaration of ‘j’ [-Wimplicit-int] a[4000],t[2000],i,j,k,p,M;main(p){for(;~scanf("%d",a+i++););for(M=i=*a;i--;M=M>k?k:M){for(k=*a;k--;t[k]=a[k+1]*2e3);for(;j<*a;t[p]+=a[(i+j++)%*a-~*a]/2*2e3+1)for(k=*a;k--;t[k]<t[p]?p=k:0);for(;j;k=fmax(k,t[--j]%2000));}M=!printf("%d",M);} ^ main.c:1:21: warning: type defaults to ‘int’ in declaration of ‘k’ [-Wimplicit-int] a[4000],t[2000],i,j,k,p,M;main(p){for(;~scanf("%d",a+i++););for(M=i=*a;i--;M=M>k?k:M){for(k=*a;k--;t[k]=a[k+1]*2e3);for(;j<*a;t[p]+=a[(i+j++)%*a-~*a]/2*2e3+1)for(k=*a;k--;t[k]<t[p]?p=k:0);for(;j;k=fmax(k,t[--j]%2000));}M=!printf("%d",M);} ^ main.c:1:23: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int] a[4000],t[2000],i,j,k,p,M;main(p){for(;~scanf("%d",a+i++););for(M=i=*a;i--;M=M>k?k:M){for(k=*a;k--;t[k]=a[
ソースコード
a[4000],t[2000],i,j,k,p,M;main(p){for(;~scanf("%d",a+i++););for(M=i=*a;i--;M=M>k?k:M){for(k=*a;k--;t[k]=a[k+1]*2e3);for(;j<*a;t[p]+=a[(i+j++)%*a-~*a]/2*2e3+1)for(k=*a;k--;t[k]<t[p]?p=k:0);for(;j;k=fmax(k,t[--j]%2000));}M=!printf("%d",M);}