結果

問題 No.51 やる気の問題
ユーザー nohakai3nohakai3
提出日時 2022-10-23 08:23:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 82 ms / 5,000 ms
コード長 158 bytes
コンパイル時間 1,327 ms
コンパイル使用メモリ 86,840 KB
実行使用メモリ 81,876 KB
最終ジャッジ日時 2023-09-14 20:47:00
合計ジャッジ時間 3,720 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,420 KB
testcase_01 AC 70 ms
71,384 KB
testcase_02 AC 72 ms
71,284 KB
testcase_03 AC 75 ms
75,624 KB
testcase_04 AC 74 ms
75,716 KB
testcase_05 AC 79 ms
79,820 KB
testcase_06 AC 78 ms
78,152 KB
testcase_07 AC 77 ms
78,432 KB
testcase_08 AC 75 ms
76,588 KB
testcase_09 AC 81 ms
81,876 KB
testcase_10 AC 76 ms
76,864 KB
testcase_11 AC 77 ms
76,800 KB
testcase_12 AC 78 ms
78,732 KB
testcase_13 AC 78 ms
78,856 KB
testcase_14 AC 77 ms
77,740 KB
testcase_15 AC 79 ms
80,572 KB
testcase_16 AC 75 ms
76,272 KB
testcase_17 AC 75 ms
76,012 KB
testcase_18 AC 80 ms
81,116 KB
testcase_19 AC 80 ms
81,040 KB
testcase_20 AC 78 ms
78,468 KB
testcase_21 AC 75 ms
75,876 KB
testcase_22 AC 82 ms
81,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a=int(input())
b=int(input())
l=[]
l.append(a)
for i in range(b,0,-1):
    a-=(a//(i*i))
    l.append(a)
if b==1:
    print(l[0])
    exit()
print(l[-2])
    
0