結果
問題 |
No.2420 Simple Problem
|
ユーザー |
![]() |
提出日時 | 2023-08-12 15:09:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 306 bytes |
コンパイル時間 | 346 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-11-19 23:51:39 |
合計ジャッジ時間 | 29,199 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 27 WA * 6 |
ソースコード
import math from sys import stdin n = int(input()) for _ in range(n): a, b = list(map(int, stdin.readline().split())) temp = a**0.5 + b**0.5 tempAns = math.ceil(temp) for i in range(-1, 2): if tempAns+i > temp: tempAns = tempAns+i break print(tempAns)