結果
問題 | No.385 カップ麺生活 |
ユーザー |
👑 ![]() |
提出日時 | 2016-07-09 17:45:39 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 18 ms / 2,000 ms |
コード長 | 202 bytes |
コンパイル時間 | 127 ms |
コンパイル使用メモリ | 20,736 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-04 22:41:17 |
合計ジャッジ時間 | 1,463 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
コンパイルメッセージ
main.c:1:3: warning: multi-character character constant [-Wmultichar] 1 | 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>1;s+=!q[m]|m-j?0:~q[m])for(;m%++j;);x=!printf("%d",s);} | ^~~~ main.c:1:1: warning: data definition has no type or storage class 1 | 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>1;s+=!q[m]|m-j?0:~q[m])for(;m%++j;);x=!printf("%d",s);} | ^ 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(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>1;s+=!q[m]|m-j?0:~q[m])for(;m%++j;);x=!printf("%d",s);} | ^ main.c:1:11: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int] 1 | 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>1;s+=!q[m]|m-j?0:~q[m])for(;m%++j;);x=!printf("%d",s);} | ^ main.c:1:17: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] 1 | 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>1;s+=!q[m]|m-j?0:~q[m])for(;m%++j;);x=!printf("%d",s);} | ^ main.c:1:20: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int] 1 | 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>1;s+=!q[m]|m-j?0:~q[m])for(;m%++j;);x=!printf("%d",s);} | ^ main.c:1:22: warning:
ソースコード
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>1;s+=!q[m]|m-j?0:~q[m])for(;m%++j;);x=!printf("%d",s);}