結果
問題 |
No.2420 Simple Problem
|
ユーザー |
![]() |
提出日時 | 2023-08-12 15:04:28 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 257 bytes |
コンパイル時間 | 460 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,136 KB |
最終ジャッジ日時 | 2024-11-19 23:15:01 |
合計ジャッジ時間 | 23,437 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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) if abs(tempAns-temp) < 10 ** -7: tempAns += 1 print(tempAns)