結果
| 問題 | No.3156 Count That Day's N |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-14 16:54:44 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 344 bytes |
| 記録 | |
| コンパイル時間 | 488 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 20,952 KB |
| 最終ジャッジ日時 | 2026-05-14 16:54:58 |
| 合計ジャッジ時間 | 9,783 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 4 |
| other | WA * 2 RE * 30 |
ソースコード
import math
K, N = map(int, input().split())
L = []
for z in range(1, int(math.sqrt(N / K)) + 1):
n = K * (z ** 2)
for x in range(1, int(N ** (1/6)) + 1):
if n - (x ** 6) <= 0:
break
if y == (n - (x ** 6)) ** (1/4):
if y.is_integer() and y > 0:
L.append(n)
print(L)
print(len(L))