結果
| 問題 |
No.8072 Sum of sqrt(x)
|
| ユーザー |
harurun
|
| 提出日時 | 2020-09-13 08:00:27 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 289 bytes |
| コンパイル時間 | 702 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 84,992 KB |
| 最終ジャッジ日時 | 2024-06-11 14:45:09 |
| 合計ジャッジ時間 | 68,803 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 7 OLE * 20 |
ソースコード
import sys
import math
pin=sys.stdin.readline
ans1=0
ans2=0
N=int(pin())
for i in range(N):
x,y=f"{math.sqrt(int(pin())):.20f}".split(".")
x=int(x)
y=int(y)
ans2+=y
ans1+=x
if ans2>=100000000000000000000:
ans2-=100000000000000000000
ans1+=1
print(f"{ans1}.{ans2}")
harurun