結果
| 問題 | No.717 ファッションへのこだわり |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2026-10-15 22:47:22 |
| 言語 | C# (.NET 10.0.402 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 38 ms / 2,000 ms |
| + 613µs | |
| コード長 | 686 bytes |
| 記録 | |
| コンパイル時間 | 5,508 ms |
| コンパイル使用メモリ | 170,928 KB |
| 実行使用メモリ | 30,336 KB |
| 最終ジャッジ日時 | 2026-10-15 22:48:02 |
| 合計ジャッジ時間 | 7,724 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (183 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net10.0/main.dll main -> /home/judge/data/code/bin/Release/net10.0/publish/
ソースコード
using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
class Program
{
static int NN => int.Parse(ReadLine());
static int[] NList => ReadLine().Split().Select(int.Parse).ToArray();
static int[][] NArr(long n) => Enumerable.Repeat(0, (int)n).Select(_ => NList).ToArray();
public static void Main()
{
Solve();
}
static void Solve()
{
ReadLine();
var s = ReadLine();
var t = ReadLine();
var sa = s.Count(si => si == 'A');
var ta = t.Count(ti => ti == 'A');
WriteLine(Math.Min(sa, ta) + Math.Min(s.Length - sa, t.Length - ta));
}
}