結果
問題 | No.79 過小評価ダメ・ゼッタイ |
ユーザー | funakoshi |
提出日時 | 2019-06-24 09:34:26 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,295 bytes |
コンパイル時間 | 3,360 ms |
コンパイル使用メモリ | 103,700 KB |
実行使用メモリ | 26,900 KB |
最終ジャッジ日時 | 2023-08-30 07:24:46 |
合計ジャッジ時間 | 5,634 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | AC | 52 ms
20,416 KB |
testcase_03 | AC | 52 ms
22,532 KB |
testcase_04 | AC | 52 ms
20,504 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 53 ms
22,648 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 52 ms
22,472 KB |
testcase_11 | WA | - |
testcase_12 | AC | 52 ms
20,628 KB |
testcase_13 | AC | 52 ms
20,488 KB |
testcase_14 | WA | - |
testcase_15 | AC | 63 ms
21,280 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 72 ms
21,636 KB |
testcase_20 | AC | 82 ms
22,768 KB |
testcase_21 | AC | 59 ms
22,716 KB |
testcase_22 | AC | 68 ms
23,504 KB |
testcase_23 | WA | - |
testcase_24 | WA | - |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoderTest { class Program { static void Main(string[] args) { string aaaaaaa = Console.ReadLine(); string input = Console.ReadLine(); string[] num = new string[6]; int[] cnt = new int[6]; string[] level = input.Split(' '); for(int i=1;i<=num.Length;i++) { num[i - 1] = i.ToString(); cnt[i - 1] = 0; } for(int i=0;i<level.Length;i++) { string temp = level[i].Substring(0, 1); for(int j=0;j<num.Length;j++) { if(temp==num[j]) { cnt[j]++; } } } string ans = ""; for(int i=0;i<cnt.Length;i++) { for (int j = i + 1; j < cnt.Length; j++) { if (cnt[i] < cnt[j]) { ans = num[j]; } } } Console.WriteLine(ans); } } }