結果
| 問題 |
No.691 E869120 and Constructing Array 5
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 19:09:01 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 431 bytes |
| コンパイル時間 | 199 ms |
| コンパイル使用メモリ | 82,100 KB |
| 実行使用メモリ | 61,416 KB |
| 最終ジャッジ日時 | 2025-06-12 19:09:09 |
| 合計ジャッジ時間 | 6,710 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 27 |
ソースコード
import math
def main():
import sys
input = sys.stdin.read().split()
idx = 0
Q = int(input[idx])
idx += 1
for _ in range(Q):
P_str = input[idx]
idx += 1
P = float(P_str)
e = round(P ** 2)
s = math.sqrt(e)
if abs(s - P) <= 1e-10:
print(f"1 {e}")
else:
print("3 10000000 15000000 20000000")
if __name__ == "__main__":
main()
gew1fw