結果
| 問題 | No.2466 Root! Root! Root! |
| ユーザー |
|
| 提出日時 | 2024-02-03 08:35:40 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 62 ms / 2,000 ms |
| + 330µs | |
| コード長 | 198 bytes |
| 記録 | |
| コンパイル時間 | 227 ms |
| コンパイル使用メモリ | 95,824 KB |
| 実行使用メモリ | 78,848 KB |
| 最終ジャッジ日時 | 2026-09-05 15:42:23 |
| 合計ジャッジ時間 | 3,404 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 24 |
ソースコード
import math
def calculate_result(N):
result = int(math.sqrt(1 + N * (N + 1)))
if N != 0:
result += 1
return result
N = int(input())
result = calculate_result(N)
print(result)