Submission #1382985
Source Code Expand
import java.util.Scanner object Main extends App { val sc = new Scanner(System.in) val n = sc.nextInt val as = Vector.fill(n)(sc.nextInt).toSet val size = as.size println(if (size % 2 == 0) size - 1 else size) }
Submission Info
Submission Time | |
---|---|
Task | D - Card Eater |
User | sssssupersonic |
Language | Scala (2.11.7) |
Score | 400 |
Code Size | 234 Byte |
Status | AC |
Exec Time | 857 ms |
Memory | 73436 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 400 / 400 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_example_01.txt, 00_example_02.txt |
All | 00_example_01.txt, 00_example_02.txt, 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_example_01.txt | AC | 337 ms | 25520 KB |
00_example_02.txt | AC | 335 ms | 25408 KB |
01.txt | AC | 338 ms | 25392 KB |
02.txt | AC | 534 ms | 33604 KB |
03.txt | AC | 348 ms | 27328 KB |
04.txt | AC | 371 ms | 23624 KB |
05.txt | AC | 344 ms | 25400 KB |
06.txt | AC | 730 ms | 52016 KB |
07.txt | AC | 718 ms | 52152 KB |
08.txt | AC | 819 ms | 52236 KB |
09.txt | AC | 719 ms | 51844 KB |
10.txt | AC | 733 ms | 52356 KB |
11.txt | AC | 857 ms | 52548 KB |
12.txt | AC | 727 ms | 52200 KB |
13.txt | AC | 844 ms | 53536 KB |
14.txt | AC | 841 ms | 73436 KB |
15.txt | AC | 715 ms | 52592 KB |