結果
| 問題 | No.9 モンスターのレベル上げ |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2016-06-29 15:14:06 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 1,994 ms / 5,000 ms |
| コード長 | 244 bytes |
| 記録 | |
| コンパイル時間 | 315 ms |
| コンパイル使用メモリ | 41,408 KB |
| 最終ジャッジ日時 | 2026-02-23 21:42:14 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
| 純コード判定しない問題か言語 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | a[4000],t[2000],i,j,k,p,M;main(n){for(scanf("%d",&n);~scanf("%d",a+i++);M=n);for(i=n;i--;M=M>k?k:M){for(k=n;k--;)t[k]=a[k]*2e3;for(;j<n;t[p]+=a[(i+j++)%n+n]/2*2e3+1)for(k=n;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]
1 | a[4000],t[2000],i,j,k,p,M;main(n){for(scanf("%d",&n);~scanf("%d",a+i++);M=n);for(i=n;i--;M=M>k?k:M){for(k=n;k--;)t[k]=a[k]*2e3;for(;j<n;t[p]+=a[(i+j++)%n+n]/2*2e3+1)for(k=n;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]
1 | a[4000],t[2000],i,j,k,p,M;main(n){for(scanf("%d",&n);~scanf("%d",a+i++);M=n);for(i=n;i--;M=M>k?k:M){for(k=n;k--;)t[k]=a[k]*2e3;for(;j<n;t[p]+=a[(i+j++)%n+n]/2*2e3+1)for(k=n;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]
1 | a[4000],t[2000],i,j,k,p,M;main(n){for(scanf("%d",&n);~scanf("%d",a+i++);M=n);for(i=n;i--;M=M>k?k:M){for(k=n;k--;)t[k]=a[k]*2e3;for(;j<n;t[p]+=a[(i+j++)%n+n]/2*2e3+1)for(k=n;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]
1 | a[4000],t[2000],i,j,k,p,M;main(n){for(scanf("%d",&n);~scanf("%d",a+i++);M=n);for(i=n;i--;M=M>k?k:M){for(k=n;k--;)t[k]=a[k]*2e3;for(;j<n;t[p]+=a[(i+j++)%n+n]/2*2e3+1)for(k=n;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]
1 | a[4000],t[2000],i,j,k,p,M;main(n){for(scanf("%d
ソースコード
a[4000],t[2000],i,j,k,p,M;main(n){for(scanf("%d",&n);~scanf("%d",a+i++);M=n);for(i=n;i--;M=M>k?k:M){for(k=n;k--;)t[k]=a[k]*2e3;for(;j<n;t[p]+=a[(i+j++)%n+n]/2*2e3+1)for(k=n;k--;)t[k]<t[p]?p=k:0;for(;j;)k=fmax(k,t[--j]%2000);}M=!printf("%d",M);}
testestest