結果
問題 | No.3072 Sum of sqrt(x) |
ユーザー | harurun |
提出日時 | 2020-09-13 07:55:55 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 269 bytes |
コンパイル時間 | 771 ms |
コンパイル使用メモリ | 10,668 KB |
実行使用メモリ | 8,556 KB |
最終ジャッジ日時 | 2023-09-02 01:18:52 |
合計ジャッジ時間 | 25,154 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 14 ms
7,864 KB |
testcase_02 | WA | - |
testcase_03 | AC | 13 ms
7,916 KB |
testcase_04 | AC | 14 ms
7,944 KB |
testcase_05 | WA | - |
testcase_06 | AC | 13 ms
7,892 KB |
testcase_07 | TLE | - |
testcase_08 | TLE | - |
testcase_09 | TLE | - |
testcase_10 | TLE | - |
testcase_11 | OLE | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
ソースコード
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}")