結果
問題 |
No.3007 組み紐
|
ユーザー |
![]() |
提出日時 | 2025-06-12 15:58:00 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 155 bytes |
コンパイル時間 | 183 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 65,536 KB |
最終ジャッジ日時 | 2025-06-12 15:58:35 |
合計ジャッジ時間 | 2,648 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)