結果
問題 | No.385 カップ麺生活 |
ユーザー |
👑 ![]() |
提出日時 | 2016-07-09 17:28:22 |
言語 | C90 (gcc 12.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 210 bytes |
コンパイル時間 | 327 ms |
コンパイル使用メモリ | 20,864 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-10-13 09:38:11 |
合計ジャッジ時間 | 3,980 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 TLE * 1 -- * 25 |
コンパイルメッセージ
main.c:1:3: warning: multi-character character constant [-Wmultichar] 1 | q['~~'],m,x=1e6,s,*p; | ^~~~ main.c:1:1: warning: data definition has no type or storage class 1 | q['~~'],m,x=1e6,s,*p; | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘q’ [-Wimplicit-int] main.c:1:9: warning: type defaults to ‘int’ in declaration of ‘m’ [-Wimplicit-int] 1 | q['~~'],m,x=1e6,s,*p; | ^ main.c:1:11: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int] 1 | q['~~'],m,x=1e6,s,*p; | ^ main.c:1:17: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] 1 | q['~~'],m,x=1e6,s,*p; | ^ main.c:1:20: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int] 1 | q['~~'],m,x=1e6,s,*p; | ^ main.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 2 | main(j){ | ^~~~ main.c: In function ‘main’: main.c:2:1: warning: type of ‘j’ defaults to ‘int’ [-Wimplicit-int] main.c:3:13: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 3 | for(scanf("%d%*d",&m),q[m]--;~scanf("%d",&j);x>j?x=j:0)for(p=q+'()';q-p--;p[j]&&p[j]<=*p?*p=p[j]-1:0); | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | q['~~'],m,x=1e6,s,*p; main.c:3:13: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 3 | for(scanf("%d%*d",&m),q[m]--;~scanf("%d",&j);x>j?x=j:0)for(p=q+'()';q-p--;p[j]&&p[j]<=*p?*p=p[j]-1:0); | ^~~~~ main.c:3:13: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:3:72: warning: multi-character character constant [-Wmultichar] 3 | for(scanf("%d%*d",&m),q[m]--;~scanf("%d",&j);x>j?x=j:0)for(p=q+'()';q-p--;p[
ソースコード
q['~~'],m,x=1e6,s,*p;main(j){for(scanf("%d%*d",&m),q[m]--;~scanf("%d",&j);x>j?x=j:0)for(p=q+'()';q-p--;p[j]&&p[j]<=*p?*p=p[j]-1:0);for(s=m/x,j=m;m%j--?:(s+=!q[m]|j?0:~q[m],j=--m-1););x=!printf("%d",s);}