結果
問題 |
No.8072 Sum of sqrt(x)
|
ユーザー |
![]() |
提出日時 | 2020-09-13 07:55:55 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 269 bytes |
コンパイル時間 | 926 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 21,504 KB |
最終ジャッジ日時 | 2024-06-11 07:55:13 |
合計ジャッジ時間 | 11,542 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 3 WA * 1 TLE * 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())):.10f}".split(".") x=int(x) y=int(y) ans2+=y ans1+=x if ans2>=10000000000: ans2-=10000000000 ans1+=1 print(f"{ans1}.{ans2}")