結果
問題 | No.1692 Expectations |
ユーザー | eSeF |
提出日時 | 2020-09-30 01:08:09 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,973 bytes |
コンパイル時間 | 2,234 ms |
コンパイル使用メモリ | 104,488 KB |
実行使用メモリ | 48,308 KB |
最終ジャッジ日時 | 2023-09-26 15:30:19 |
合計ジャッジ時間 | 5,433 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 63 ms
21,776 KB |
testcase_01 | AC | 64 ms
21,756 KB |
testcase_02 | AC | 73 ms
22,016 KB |
testcase_03 | AC | 72 ms
22,148 KB |
testcase_04 | AC | 73 ms
24,128 KB |
testcase_05 | AC | 71 ms
24,192 KB |
testcase_06 | AC | 72 ms
22,092 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 69 ms
22,052 KB |
testcase_10 | WA | - |
testcase_11 | AC | 140 ms
38,008 KB |
testcase_12 | AC | 65 ms
21,876 KB |
testcase_13 | AC | 65 ms
23,828 KB |
testcase_14 | AC | 80 ms
23,008 KB |
testcase_15 | AC | 149 ms
43,724 KB |
testcase_16 | AC | 81 ms
23,456 KB |
testcase_17 | AC | 109 ms
31,124 KB |
testcase_18 | AC | 86 ms
26,360 KB |
testcase_19 | AC | 166 ms
48,308 KB |
testcase_20 | AC | 151 ms
43,708 KB |
testcase_21 | AC | 157 ms
46,092 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Linq; namespace Solution { class AC { static void Main(string[] args) { var (N, M) = Cin.Input<int, int>(); var A = Cin.ReadSplitInt(); int type = A.Distinct().Count(); Console.WriteLine($"{type} 0"); } } } static class Cin { public static string Str() => Console.ReadLine(); public static int Int() => int.Parse(Cin.Str()); public static long Long() => long.Parse(Cin.Str()); public static double Double() => double.Parse(Cin.Str()); private static T Conv<T>(string value) => (T)Convert.ChangeType(value, typeof(T)); public static (T, U) ReadTuple<T, U>(string[] input) => (Conv<T>(input[0]), Conv<U>(input[1])); public static (T, U, V) ReadTuple<T, U, V>(string[] input) => (Conv<T>(input[0]), Conv<U>(input[1]), Conv<V>(input[2])); public static (T, U, V, W) ReadTuple<T, U, V, W>(string[] input) => (Conv<T>(input[0]), Conv<U>(input[1]), Conv<V>(input[2]), Conv<W>(input[3])); public static (T, U, V, W, X) ReadTuple<T, U, V, W, X>(string[] input) => (Conv<T>(input[0]), Conv<U>(input[1]), Conv<V>(input[2]), Conv<W>(input[3]), Conv<X>(input[4])); public static (T, U) Input<T, U>() => ReadTuple<T, U>(ReadSplit()); public static (T, U, V) Input<T, U, V>() => ReadTuple<T, U, V>(ReadSplit()); public static (T, U, V, W) Input<T, U, V, W>() => ReadTuple<T, U, V, W>(ReadSplit()); public static (T, U, V, W, X) Input<T, U, V, W, X>() => ReadTuple<T, U, V, W, X>(ReadSplit()); public static string[] ReadSplit() => Console.ReadLine().Split(); public static string[] ReadSplit(char separator) => Console.ReadLine().Split(separator); public static int[] ReadSplitInt() => Array.ConvertAll(ReadSplit(), int.Parse); public static long[] ReadSplitLong() => Array.ConvertAll(ReadSplit(), long.Parse); public static double[] ReadSplit_Double() => Array.ConvertAll(ReadSplit(), double.Parse); }