結果
問題 |
No.648 お や す み
|
ユーザー |
|
提出日時 | 2018-03-01 10:25:07 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 128 bytes |
コンパイル時間 | 114 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-12-24 02:40:25 |
合計ジャッジ時間 | 4,453 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 80 WA * 4 |
ソースコード
import math n = int(input()) t = (math.sqrt(8*n+1)-1)/2 if t == int(t): print("YES") print(int(t)) else: print("NO")