結果

問題 No.3156 Count That Day's N
ユーザー N-noa21
提出日時 2025-05-23 20:20:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 216 ms / 3,000 ms
コード長 251 bytes
コンパイル時間 439 ms
コンパイル使用メモリ 82,068 KB
実行使用メモリ 65,940 KB
最終ジャッジ日時 2025-05-23 20:20:15
合計ジャッジ時間 6,463 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

K,N = map(int, input().split())
s = set([])
for x in range(1,1001):
    for y in range(1,10**4):
        if x**6 + y**4 > N:
            break
        if ((x**6 + y**4)/K)**0.5 == int(((x**6 + y**4)/K)**0.5):
            s.add(x**6+y**4)
print(len(s))
0