結果
| 問題 | No.648 お や す み |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-02 23:29:27 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 233 bytes |
| 記録 | |
| コンパイル時間 | 198 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 17,692 KB |
| 最終ジャッジ日時 | 2024-06-22 11:46:15 |
| 合計ジャッジ時間 | 5,792 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 16 TLE * 4 -- * 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')