結果
問題 |
No.3156 Count That Day's N
|
ユーザー |
![]() |
提出日時 | 2025-05-23 19:09:06 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 445 ms / 3,000 ms |
コード長 | 255 bytes |
コンパイル時間 | 312 ms |
コンパイル使用メモリ | 81,940 KB |
実行使用メモリ | 231,592 KB |
最終ジャッジ日時 | 2025-05-23 19:09:29 |
合計ジャッジ時間 | 11,098 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 32 |
ソースコード
k, n = map(int, input().split()) x = 1 C = set() while x ** 6 + 1 <= n: y = 1 while x ** 6 + y ** 4 <= n: C.add(x**6+y**4) y += 1 x += 1 ans = 0 for c in C: if c % k: continue t = c // k m = int(t**0.5) if m * m == t: ans += 1 print(ans)