結果

問題 No.376 立方体のN等分 (2)
ユーザー cielciel
提出日時 2020-08-14 01:12:31
言語 Crystal
(1.11.2)
結果
AC  
実行時間 1,390 ms / 5,000 ms
コード長 203 bytes
コンパイル時間 17,689 ms
コンパイル使用メモリ 256,752 KB
実行使用メモリ 5,200 KB
最終ジャッジ日時 2023-09-13 11:38:03
合計ジャッジ時間 27,888 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,380 KB
testcase_01 AC 2 ms
4,508 KB
testcase_02 AC 102 ms
4,380 KB
testcase_03 AC 99 ms
4,892 KB
testcase_04 AC 118 ms
4,376 KB
testcase_05 AC 2 ms
4,416 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 2 ms
4,396 KB
testcase_08 AC 7 ms
4,384 KB
testcase_09 AC 27 ms
4,412 KB
testcase_10 AC 110 ms
4,796 KB
testcase_11 AC 54 ms
4,484 KB
testcase_12 AC 73 ms
4,508 KB
testcase_13 AC 75 ms
4,380 KB
testcase_14 AC 83 ms
4,376 KB
testcase_15 AC 92 ms
4,380 KB
testcase_16 AC 1,212 ms
5,200 KB
testcase_17 AC 103 ms
4,408 KB
testcase_18 AC 107 ms
4,380 KB
testcase_19 AC 109 ms
4,612 KB
testcase_20 AC 112 ms
4,384 KB
testcase_21 AC 1,241 ms
5,168 KB
testcase_22 AC 117 ms
4,380 KB
testcase_23 AC 1,290 ms
4,948 KB
testcase_24 AC 1,200 ms
5,096 KB
testcase_25 AC 121 ms
4,432 KB
testcase_26 AC 1,390 ms
5,080 KB
testcase_27 AC 122 ms
4,420 KB
testcase_28 AC 123 ms
4,380 KB
testcase_29 AC 123 ms
4,436 KB
testcase_30 AC 122 ms
4,380 KB
testcase_31 AC 122 ms
4,472 KB
testcase_32 AC 123 ms
4,376 KB
testcase_33 AC 122 ms
4,380 KB
testcase_34 AC 123 ms
4,384 KB
testcase_35 AC 123 ms
4,384 KB
testcase_36 AC 122 ms
4,468 KB
testcase_37 AC 123 ms
4,380 KB
testcase_38 AC 123 ms
4,384 KB
testcase_39 AC 123 ms
4,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

lib C;fun strtoll(s: UInt8*,p: UInt8*,b: Int32): Int64;end
m=n=C.strtoll(gets.not_nil!,nil,10)
y=(1_i64..n**0.5).reject{|i|n%i>0}
y.map{|a|y.each{|b|c=a*b;n%c==0&&(m=[m,a+b+n//c-3].min)}}
print m," ",n-1
0