結果
| 問題 |
No.3007 組み紐
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 20:47:17 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 155 bytes |
| コンパイル時間 | 172 ms |
| コンパイル使用メモリ | 81,968 KB |
| 実行使用メモリ | 67,236 KB |
| 最終ジャッジ日時 | 2025-06-12 20:48:22 |
| 合計ジャッジ時間 | 2,613 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 4 |
| other | RE * 21 |
ソースコード
import math
N = int(input())
s = sum(int(c) for c in str(N))
d = 1 + 8 * s
sqrt_d = math.isqrt(d)
if sqrt_d * sqrt_d == d:
print(1)
else:
print(0)
gew1fw