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