結果

問題 No.1389 Clumsy Calculation
ユーザー gmm_teagmm_tea
提出日時 2021-02-12 21:25:59
言語 Ruby
(3.2.2)
結果
AC  
実行時間 164 ms / 2,000 ms
コード長 72 bytes
コンパイル時間 394 ms
コンパイル使用メモリ 11,236 KB
実行使用メモリ 28,592 KB
最終ジャッジ日時 2023-09-27 02:46:36
合計ジャッジ時間 6,210 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,152 KB
testcase_01 AC 83 ms
15,076 KB
testcase_02 AC 84 ms
15,032 KB
testcase_03 AC 88 ms
15,032 KB
testcase_04 AC 87 ms
15,276 KB
testcase_05 AC 86 ms
15,072 KB
testcase_06 AC 85 ms
15,152 KB
testcase_07 AC 88 ms
15,272 KB
testcase_08 AC 84 ms
15,236 KB
testcase_09 AC 164 ms
28,592 KB
testcase_10 AC 153 ms
26,936 KB
testcase_11 AC 87 ms
15,044 KB
testcase_12 AC 85 ms
15,340 KB
testcase_13 AC 86 ms
15,216 KB
testcase_14 AC 159 ms
28,104 KB
testcase_15 AC 162 ms
28,004 KB
testcase_16 AC 162 ms
27,992 KB
testcase_17 AC 163 ms
28,240 KB
testcase_18 AC 160 ms
28,296 KB
testcase_19 AC 160 ms
28,336 KB
testcase_20 AC 159 ms
28,492 KB
testcase_21 AC 160 ms
28,192 KB
testcase_22 AC 159 ms
28,212 KB
testcase_23 AC 164 ms
28,188 KB
testcase_24 AC 160 ms
28,240 KB
testcase_25 AC 162 ms
28,316 KB
testcase_26 AC 155 ms
27,812 KB
testcase_27 AC 162 ms
28,188 KB
testcase_28 AC 160 ms
28,388 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n,x=gets.split.map(&:to_i)
s=gets.split.map(&:to_i)
puts x-(n*x-s.sum)

0