Submission #30552675
Source Code Expand
# frozen_string_literal: true
require 'set'
N = gets.chomp.to_i
A = Set.new gets.chomp.split.map(&:to_i)
(0..).each do |i|
unless A.include?(i)
puts i
break
end
end
Submission Info
| Submission Time | |
|---|---|
| Task | B - Mex |
| User | Aruma256 |
| Language | Ruby (2.7.1) |
| Score | 200 |
| Code Size | 191 Byte |
| Status | AC |
| Exec Time | 65 ms |
| Memory | 14496 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example0.txt, example1.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, 013.txt, example0.txt, example1.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 000.txt | AC | 62 ms | 14252 KiB |
| 001.txt | AC | 62 ms | 14336 KiB |
| 002.txt | AC | 59 ms | 14268 KiB |
| 003.txt | AC | 57 ms | 14396 KiB |
| 004.txt | AC | 57 ms | 14392 KiB |
| 005.txt | AC | 57 ms | 14496 KiB |
| 006.txt | AC | 60 ms | 14268 KiB |
| 007.txt | AC | 56 ms | 14464 KiB |
| 008.txt | AC | 57 ms | 14260 KiB |
| 009.txt | AC | 59 ms | 14484 KiB |
| 010.txt | AC | 60 ms | 14320 KiB |
| 011.txt | AC | 65 ms | 14360 KiB |
| 012.txt | AC | 57 ms | 14376 KiB |
| 013.txt | AC | 59 ms | 14272 KiB |
| example0.txt | AC | 58 ms | 14240 KiB |
| example1.txt | AC | 59 ms | 14248 KiB |