結果
問題 | No.3072 Sum of sqrt(x) |
ユーザー | harurun |
提出日時 | 2020-09-13 08:00:27 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 289 bytes |
コンパイル時間 | 2,396 ms |
コンパイル使用メモリ | 85,980 KB |
実行使用メモリ | 86,652 KB |
最終ジャッジ日時 | 2023-09-02 07:47:48 |
合計ジャッジ時間 | 35,923 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 90 ms
71,720 KB |
testcase_01 | AC | 86 ms
71,180 KB |
testcase_02 | WA | - |
testcase_03 | AC | 86 ms
71,076 KB |
testcase_04 | AC | 86 ms
71,268 KB |
testcase_05 | AC | 85 ms
71,224 KB |
testcase_06 | AC | 85 ms
71,204 KB |
testcase_07 | OLE | - |
testcase_08 | AC | 1,058 ms
86,652 KB |
testcase_09 | AC | 1,095 ms
81,968 KB |
testcase_10 | AC | 1,422 ms
79,716 KB |
testcase_11 | OLE | - |
testcase_12 | OLE | - |
testcase_13 | OLE | - |
testcase_14 | OLE | - |
testcase_15 | OLE | - |
testcase_16 | OLE | - |
testcase_17 | OLE | - |
testcase_18 | OLE | - |
testcase_19 | OLE | - |
testcase_20 | OLE | - |
testcase_21 | OLE | - |
testcase_22 | OLE | - |
testcase_23 | OLE | - |
testcase_24 | OLE | - |
testcase_25 | OLE | - |
testcase_26 | OLE | - |
testcase_27 | OLE | - |
testcase_28 | OLE | - |
testcase_29 | OLE | - |
ソースコード
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}")