結果
| 問題 |
No.8072 Sum of sqrt(x)
|
| ユーザー |
harurun
|
| 提出日時 | 2020-09-13 07:57:56 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 289 bytes |
| コンパイル時間 | 618 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 16,256 KB |
| 最終ジャッジ日時 | 2024-06-11 08:06:27 |
| 合計ジャッジ時間 | 11,720 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 4 OLE * 1 -- * 22 |
ソースコード
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