結果
問題 | No.1390 Get together |
ユーザー |
|
提出日時 | 2021-03-22 07:06:45 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 251 bytes |
コンパイル時間 | 50 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 24,192 KB |
最終ジャッジ日時 | 2024-11-23 15:49:43 |
合計ジャッジ時間 | 12,979 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 WA * 16 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - m Syntax OK
ソースコード
n, m = gets.chomp.split(" ").map(&:to_i)hash = Hash.new(0)count = 0iru = Hash.new(0)n.times dob, c = gets.chomp.split(" ").map(&:to_i)count += 1 if hash[c] >= 1count -= 1 if iru[c] == biru[c] = bhash[c] += 1endputs count