結果

問題 No.375 立方体のN等分 (1)
ユーザー vorg101vorg101
提出日時 2016-06-04 23:18:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 204 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-04-17 01:12:23
合計ジャッジ時間 2,642 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
10,496 KB
testcase_01 AC 25 ms
10,624 KB
testcase_02 WA -
testcase_03 AC 26 ms
10,624 KB
testcase_04 AC 25 ms
10,752 KB
testcase_05 AC 24 ms
10,624 KB
testcase_06 AC 26 ms
10,496 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 41 ms
10,752 KB
testcase_10 AC 28 ms
10,752 KB
testcase_11 AC 44 ms
10,752 KB
testcase_12 AC 46 ms
10,752 KB
testcase_13 AC 50 ms
10,624 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 54 ms
10,752 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 60 ms
10,624 KB
testcase_24 AC 56 ms
10,624 KB
testcase_25 WA -
testcase_26 AC 34 ms
10,624 KB
testcase_27 AC 56 ms
10,752 KB
testcase_28 AC 39 ms
10,624 KB
testcase_29 AC 26 ms
10,752 KB
testcase_30 AC 80 ms
10,624 KB
testcase_31 AC 81 ms
10,624 KB
testcase_32 AC 92 ms
10,496 KB
testcase_33 AC 39 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def aa(n):
    import math
    tn = int(math.sqrt(n))
    while n % tn != 0:
        tn -= 1
    return tn, n // tn

n = int(input())
minT = 0
for a in aa(n):
    minT += sum(aa(a))
print(minT - 4, n - 1)
0