結果

問題 No.1033 乱数サイ
ユーザー yosakayosaka
提出日時 2020-04-24 21:29:27
言語 Nim
(2.0.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 242 bytes
コンパイル時間 4,718 ms
コンパイル使用メモリ 70,796 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-05 04:31:05
合計ジャッジ時間 5,392 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 2 ms
4,376 KB
testcase_12 AC 2 ms
4,376 KB
testcase_13 AC 2 ms
4,380 KB
testcase_14 AC 2 ms
4,376 KB
testcase_15 AC 2 ms
4,380 KB
testcase_16 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 85) Warning: Use the new 'sugar' module instead; future is deprecated [Deprecated]
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'algorithm' [UnusedImport]
/home/judge/data/code/Main.nim(1, 19) Warning: imported and not used: 'tables' [UnusedImport]
/home/judge/data/code/Main.nim(1, 27) Warning: imported and not used: 'sets' [UnusedImport]
/home/judge/data/code/Main.nim(1, 33) Warning: imported and not used: 'lists' [UnusedImport]
/home/judge/data/code/Main.nim(1, 40) Warning: imported and not used: 'intsets' [UnusedImport]
/home/judge/data/code/Main.nim(1, 49) Warning: imported and not used: 'critbits' [UnusedImport]
/home/judge/data/code/Main.nim(1, 79) Warning: imported and not used: 'math' [UnusedImport]
/home/judge/data/code/Main.nim(1, 85) Warning: imported and not used: 'future' [UnusedImport]

ソースコード

diff #

import algorithm, tables, sets, lists, intsets, critbits, sequtils, strutils, math, future
var 
    N, K:float
    ans:float
(N, K) = stdin.readLine.split.map(parseFloat)

for i in 0..N.int:
    ans += i.toFloat * K
echo ans / ((N + 1.0) * K)
0