結果

問題 No.691 E869120 and Constructing Array 5
ユーザー lam6er
提出日時 2025-03-20 20:41:51
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 316 bytes
コンパイル時間 253 ms
コンパイル使用メモリ 82,452 KB
実行使用メモリ 69,040 KB
最終ジャッジ日時 2025-03-20 20:41:58
合計ジャッジ時間 6,549 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

Q = int(input())
for _ in range(Q):
    P = float(input().strip())
    e_single = round(P ** 2)
    sqrt_e = math.sqrt(e_single)
    if abs(sqrt_e - P) <= 1e-10:
        print(f"1 {e_single}")
    else:
        e1 = 10000000
        e2 = 15000000
        e3 = 20000000
        print(f"3 {e1} {e2} {e3}")
0