結果
| 問題 | No.648 お や す み |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-02 23:28:20 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 233 bytes |
| 記録 | |
| コンパイル時間 | 418 ms |
| コンパイル使用メモリ | 21,280 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-07-27 02:30:13 |
| 合計ジャッジ時間 | 15,886 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 WA * 16 TLE * 1 -- * 53 |
ソースコード
n = int(input())
def count(i):
sum = 0
for num in range(1, i+1):
sum += num
return sum
i = 0
if n < 10**10:
while count(i) < n:
i += 1
print('YES')
print(i)
else:
print('NO')