結果
問題 | No.691 E869120 and Constructing Array 5 |
ユーザー |
![]() |
提出日時 | 2025-06-12 14:09:58 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 431 bytes |
コンパイル時間 | 171 ms |
コンパイル使用メモリ | 82,900 KB |
実行使用メモリ | 61,932 KB |
最終ジャッジ日時 | 2025-06-12 14:10:24 |
合計ジャッジ時間 | 5,171 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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()