結果
問題 |
No.648 お や す み
|
ユーザー |
![]() |
提出日時 | 2018-05-11 21:00:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 181 bytes |
コンパイル時間 | 120 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-06-28 04:00:21 |
合計ジャッジ時間 | 4,425 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 80 WA * 4 |
ソースコード
import math n = float(input()) t = (math.sqrt(1 + 8 * n) - 1) / 2 if t % 1 == 0 and 1 <= t <= 60 * 60 * 24 * 365 * 10 ** 10: print("YES") print(int(t)) else: print("NO")