結果
| 問題 | No.8072 Sum of sqrt(x) |
| ユーザー |
nishigake
|
| 提出日時 | 2020-11-23 01:42:06 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 212 bytes |
| 記録 | |
| コンパイル時間 | 799 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 120,076 KB |
| 最終ジャッジ日時 | 2026-04-03 15:20:09 |
| 合計ジャッジ時間 | 24,968 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 WA * 13 TLE * 6 |
ソースコード
import sys
input = sys.stdin.readline
N = int(input())
ans = 0
d = {}
for _ in range(N):
x = int(input())
if x in d:
ans += d[x]
else:
d[x] = x**0.5
ans += d[x]
print(ans)
nishigake