結果
問題 | No.376 立方体のN等分 (2) |
ユーザー | 👑 testestest |
提出日時 | 2016-06-17 09:34:07 |
言語 | C90 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 1,041 ms / 5,000 ms |
コード長 | 139 bytes |
コンパイル時間 | 587 ms |
コンパイル使用メモリ | 21,504 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-26 03:10:44 |
合計ジャッジ時間 | 15,518 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 3 ms
6,812 KB |
testcase_01 | AC | 2 ms
6,944 KB |
testcase_02 | AC | 360 ms
6,940 KB |
testcase_03 | AC | 310 ms
6,940 KB |
testcase_04 | AC | 899 ms
6,940 KB |
testcase_05 | AC | 2 ms
6,940 KB |
testcase_06 | AC | 2 ms
6,944 KB |
testcase_07 | AC | 2 ms
6,940 KB |
testcase_08 | AC | 37 ms
6,940 KB |
testcase_09 | AC | 122 ms
6,940 KB |
testcase_10 | AC | 98 ms
6,944 KB |
testcase_11 | AC | 282 ms
6,944 KB |
testcase_12 | AC | 243 ms
6,944 KB |
testcase_13 | AC | 449 ms
6,940 KB |
testcase_14 | AC | 509 ms
6,944 KB |
testcase_15 | AC | 486 ms
6,944 KB |
testcase_16 | AC | 120 ms
6,940 KB |
testcase_17 | AC | 223 ms
6,944 KB |
testcase_18 | AC | 692 ms
6,944 KB |
testcase_19 | AC | 277 ms
6,940 KB |
testcase_20 | AC | 545 ms
6,940 KB |
testcase_21 | AC | 148 ms
6,944 KB |
testcase_22 | AC | 482 ms
6,940 KB |
testcase_23 | AC | 145 ms
6,940 KB |
testcase_24 | AC | 150 ms
6,940 KB |
testcase_25 | AC | 274 ms
6,940 KB |
testcase_26 | AC | 133 ms
6,944 KB |
testcase_27 | AC | 572 ms
6,940 KB |
testcase_28 | AC | 1,041 ms
6,944 KB |
testcase_29 | AC | 575 ms
6,944 KB |
testcase_30 | AC | 505 ms
6,940 KB |
testcase_31 | AC | 617 ms
6,940 KB |
testcase_32 | AC | 315 ms
6,940 KB |
testcase_33 | AC | 794 ms
6,944 KB |
testcase_34 | AC | 276 ms
6,944 KB |
testcase_35 | AC | 452 ms
6,940 KB |
testcase_36 | AC | 429 ms
6,944 KB |
testcase_37 | AC | 664 ms
6,940 KB |
testcase_38 | AC | 513 ms
6,940 KB |
testcase_39 | AC | 343 ms
6,944 KB |
コンパイルメッセージ
main.c:1:16: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | long m,s,i=5e4;main(j){scanf("%ld",&m);for(s=m;--i;s=m%i?s:fmin(i+j+m/i/j-3,s))for(j=sqrt(m/i)+2;m%i<m/i%--j;);s=!printf("%ld %ld",s,m-1);} | ^~~~ main.c: In function ‘main’: main.c:1:16: warning: type of ‘j’ defaults to ‘int’ [-Wimplicit-int] main.c:1:24: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | long m,s,i=5e4;main(j){scanf("%ld",&m);for(s=m;--i;s=m%i?s:fmin(i+j+m/i/j-3,s))for(j=sqrt(m/i)+2;m%i<m/i%--j;);s=!printf("%ld %ld",s,m-1);} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | long m,s,i=5e4;main(j){scanf("%ld",&m);for(s=m;--i;s=m%i?s:fmin(i+j+m/i/j-3,s))for(j=sqrt(m/i)+2;m%i<m/i%--j;);s=!printf("%ld %ld",s,m-1);} main.c:1:24: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | long m,s,i=5e4;main(j){scanf("%ld",&m);for(s=m;--i;s=m%i?s:fmin(i+j+m/i/j-3,s))for(j=sqrt(m/i)+2;m%i<m/i%--j;);s=!printf("%ld %ld",s,m-1);} | ^~~~~ main.c:1:24: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:60: warning: implicit declaration of function ‘fmin’ [-Wimplicit-function-declaration] 1 | long m,s,i=5e4;main(j){scanf("%ld",&m);for(s=m;--i;s=m%i?s:fmin(i+j+m/i/j-3,s))for(j=sqrt(m/i)+2;m%i<m/i%--j;);s=!printf("%ld %ld",s,m-1);} | ^~~~ main.c:1:1: note: include ‘<math.h>’ or provide a declaration of ‘fmin’ +++ |+#include <math.h> 1 | long m,s,i=5e4;main(j){scanf("%ld",&m);for(s=m;--i;s=m%i?s:fmin(i+j+m/i/j-3,s))for(j=sqrt(m/i)+2;m%i<m/i%--j;);s=!printf("%ld %ld",s,m-1);} main.c:1:60: warning: incompatible implicit declaration of built-in function ‘fmin’ [-Wbuiltin-declaration-mismatch] 1 | long m
ソースコード
long m,s,i=5e4;main(j){scanf("%ld",&m);for(s=m;--i;s=m%i?s:fmin(i+j+m/i/j-3,s))for(j=sqrt(m/i)+2;m%i<m/i%--j;);s=!printf("%ld %ld",s,m-1);}