Submission #7022211
Source Code Expand
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC085B_KagamiMochi { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); List<int> list = new List<int>(); for(int i = 0; i < n; i++) { int input = int.Parse(Console.ReadLine()); if (!list.Contains(input)) { list.Add(input); } } Console.WriteLine(list.Count); } } }
Submission Info
Submission Time | |
---|---|
Task | B - Kagami Mochi |
User | sumachu |
Language | C# (Mono 4.6.2.0) |
Score | 200 |
Code Size | 649 Byte |
Status | AC |
Exec Time | 22 ms |
Memory | 13268 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | a01, a02, a03 |
All | a01, a02, a03, b04, b05, b06, b07, b08, b09, b10, b11, b12, b13 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
a01 | AC | 21 ms | 13268 KB |
a02 | AC | 21 ms | 11220 KB |
a03 | AC | 21 ms | 11220 KB |
b04 | AC | 21 ms | 11104 KB |
b05 | AC | 22 ms | 13148 KB |
b06 | AC | 20 ms | 11104 KB |
b07 | AC | 21 ms | 11104 KB |
b08 | AC | 21 ms | 11100 KB |
b09 | AC | 21 ms | 11100 KB |
b10 | AC | 21 ms | 13140 KB |
b11 | AC | 21 ms | 11220 KB |
b12 | AC | 21 ms | 13148 KB |
b13 | AC | 21 ms | 11100 KB |