結果
問題 |
No.648 お や す み
|
ユーザー |
![]() |
提出日時 | 2018-08-19 11:13:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 131 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-15 20:09:00 |
合計ジャッジ時間 | 4,821 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 80 WA * 4 |
ソースコード
import math n=int(input()) tmp=(math.sqrt(1+8*n)-1)/2 if int(tmp)==tmp: print('YES') print(int(tmp)) else: print('NO')