結果

問題 No.586 ダブルブッキング
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2020-10-09 15:19:29
言語 Ruby
(3.3.0)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 124 bytes
コンパイル時間 53 ms
コンパイル使用メモリ 11,548 KB
実行使用メモリ 15,416 KB
最終ジャッジ日時 2023-09-27 12:41:51
合計ジャッジ時間 1,304 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,416 KB
testcase_01 AC 85 ms
15,212 KB
testcase_02 AC 78 ms
15,208 KB
testcase_03 AC 76 ms
15,332 KB
testcase_04 AC 74 ms
15,292 KB
testcase_05 AC 79 ms
15,332 KB
testcase_06 AC 79 ms
15,232 KB
testcase_07 AC 77 ms
15,340 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require 'set'
C = [gets,gets].map(&:to_i).sum 
V = Set.new
G = gets.to_i
G.times {|_| V << gets.to_i }
puts (G - V.size) * C
0