結果
| 問題 | No.648 お や す み |
| コンテスト | |
| ユーザー |
ttr
|
| 提出日時 | 2020-02-16 19:31:30 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 152 ms / 2,000 ms |
| コード長 | 109 bytes |
| 記録 | |
| コンパイル時間 | 544 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 15,452 KB |
| 最終ジャッジ日時 | 2026-04-22 17:33:15 |
| 合計ジャッジ時間 | 11,370 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 84 |
ソースコード
N = int(input())
t = int((2*N)**0.5)
if t*(t+1)//2 == N:
print("YES")
print(t)
else:
print("NO")
ttr