結果
| 問題 |
No.2420 Simple Problem
|
| コンテスト | |
| ユーザー |
kemuniku
|
| 提出日時 | 2023-08-12 14:03:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 261 bytes |
| コンパイル時間 | 338 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 21,888 KB |
| 最終ジャッジ日時 | 2024-11-19 17:12:00 |
| 合計ジャッジ時間 | 93,315 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 3 TLE * 30 |
ソースコード
N = int(input())
from decimal import Decimal,ROUND_UP
half = Decimal("0.5")
for i in range(N):
A,B = map(Decimal,input().split())
A **= half
B **= half
ans = (A+B).quantize(Decimal('0'), rounding=ROUND_UP)
if (A+B) == ans:
ans += 1
print(ans)
kemuniku