結果

問題 No.717 ファッションへのこだわり
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-07-30 23:44:45
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 331 bytes
コンパイル時間 2,848 ms
コンパイル使用メモリ 105,648 KB
実行使用メモリ 24,036 KB
最終ジャッジ日時 2023-10-13 09:55:52
合計ジャッジ時間 4,673 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
19,928 KB
testcase_01 AC 59 ms
21,956 KB
testcase_02 AC 57 ms
24,000 KB
testcase_03 AC 58 ms
19,916 KB
testcase_04 AC 58 ms
21,952 KB
testcase_05 AC 59 ms
19,864 KB
testcase_06 AC 61 ms
23,800 KB
testcase_07 AC 59 ms
21,840 KB
testcase_08 AC 60 ms
24,036 KB
testcase_09 AC 60 ms
23,824 KB
testcase_10 AC 60 ms
21,820 KB
testcase_11 AC 62 ms
22,012 KB
testcase_12 AC 60 ms
21,920 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

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[1]-c:a[0]-b));
    }
}
0