結果

問題 No.385 カップ麺生活
ユーザー testestesttestestest
提出日時 2016-07-09 17:43:11
言語 C90
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 200 bytes
コンパイル時間 124 ms
コンパイル使用メモリ 20,864 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-21 10:47:20
合計ジャッジ時間 3,866 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,656 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 7 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 9 ms
5,376 KB
testcase_07 AC 15 ms
5,376 KB
testcase_08 AC 2 ms
5,376 KB
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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: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]|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]|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]|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]|j?0:~q[m])for(;m%j--;);x=!printf("%d",s);}
      |                    ^
main.c:1:22: warning: return type 

ソースコード

diff #

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);}
0