結果
| 問題 | No.648 お や す み |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-02 23:29:27 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 233 bytes |
| 記録 | |
| コンパイル時間 | 680 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 30,972 KB |
| 最終ジャッジ日時 | 2026-03-06 17:28:28 |
| 合計ジャッジ時間 | 85,246 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 WA * 32 TLE * 23 |
ソースコード
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')