Submission #3239937
Source Code Expand
n = gets.to_i s = Array.new(n) for i in 0..(n-1) do s[i] = gets.chomp end m = gets.to_i t = Array.new(m) for i in 0..(m-1) do t[i] = gets.chomp end max = 0 for i in 0..(n-1) do count = s.count(s[i]) - t.count(s[i]) max = [count, max].max end p max
Submission Info
Submission Time | |
---|---|
Task | B - Two Colors Card Game |
User | Kouch |
Language | Ruby (2.3.3) |
Score | 200 |
Code Size | 282 Byte |
Status | AC |
Exec Time | 8 ms |
Memory | 1916 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example_0, example_1, example_2, example_3 |
All | example_0, example_1, example_2, example_3, rand_0, rand_1, rand_2, rand_3, rand_4, rand_5, rand_6 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
example_0 | AC | 8 ms | 1916 KB |
example_1 | AC | 7 ms | 1788 KB |
example_2 | AC | 7 ms | 1788 KB |
example_3 | AC | 7 ms | 1788 KB |
rand_0 | AC | 7 ms | 1788 KB |
rand_1 | AC | 7 ms | 1788 KB |
rand_2 | AC | 8 ms | 1788 KB |
rand_3 | AC | 7 ms | 1788 KB |
rand_4 | AC | 7 ms | 1788 KB |
rand_5 | AC | 7 ms | 1788 KB |
rand_6 | AC | 7 ms | 1788 KB |