結果
| 問題 | No.385 カップ麺生活 |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2016-07-09 17:43:11 |
| 言語 | C90 (gcc 12.4.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 200 bytes |
| 記録 | |
| コンパイル時間 | 165 ms |
| コンパイル使用メモリ | 30,408 KB |
| 最終ジャッジ日時 | 2026-02-23 21:49:16 |
|
ジャッジサーバーID (参考情報) |
judge2 / 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(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]|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]|j?0:~q[m])for(;m%j--;);x=!printf("%d",s);}
| ^
main.c: In function ‘main’:
main.c:1:34: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
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]|j?0:~q[m])for(;m%j--;);x=!printf("%d",s);}
| ^~~~~
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(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]|j?0:~q[m])for(;m%j--;);x=!printf("%d",s);}
main.c:1:93: 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]|j?0:~q[m])for(;m%j--;);x=!printf("%d",s);}
| ^~~~
main.c:1:185: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
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]|j?0:~q[m])for(;m%j
ソースコード
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]|j?0:~q[m])for(;m%j--;);x=!printf("%d",s);}
testestest