結果
問題 |
No.648 お や す み
|
ユーザー |
|
提出日時 | 2018-02-12 17:30:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 133 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-11-24 18:55:41 |
合計ジャッジ時間 | 4,062 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 80 WA * 4 |
ソースコード
import math n=int(input()) m=(math.sqrt(8*n+1)-1)/2 if m==int(m) and n<2*10**18: print("YES\n"+str(int(m))) else: print("NO")