結果
問題 | No.717 ファッションへのこだわり |
ユーザー | pirorirori_n712 |
提出日時 | 2018-07-30 23:42:59 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 331 bytes |
コンパイル時間 | 2,463 ms |
コンパイル使用メモリ | 101,852 KB |
実行使用メモリ | 24,048 KB |
最終ジャッジ日時 | 2023-10-13 09:54:02 |
合計ジャッジ時間 | 4,325 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 72 ms
21,940 KB |
testcase_01 | AC | 68 ms
24,048 KB |
testcase_02 | WA | - |
testcase_03 | AC | 69 ms
21,876 KB |
testcase_04 | WA | - |
testcase_05 | AC | 65 ms
21,908 KB |
testcase_06 | AC | 63 ms
22,004 KB |
testcase_07 | AC | 62 ms
21,988 KB |
testcase_08 | AC | 63 ms
23,892 KB |
testcase_09 | AC | 63 ms
21,840 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | 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.Linq; class No717{ static void Main(){ var a=Console.ReadLine().Split(' ').Select(x=>Int32.Parse(x)).ToArray(); var b=Console.ReadLine().Count(x=>x=='A'); var c=Console.ReadLine().Count(x=>x=='A'); Console.WriteLine((b>c?c:b)+((a[0]-b>a[1]-c)?a[0]-c:a[1]-b)); } }