結果
| 問題 |
No.3342 AAB Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-13 23:32:41 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 70 ms / 2,000 ms |
| コード長 | 425 bytes |
| コンパイル時間 | 11,133 ms |
| コンパイル使用メモリ | 170,820 KB |
| 実行使用メモリ | 188,624 KB |
| 最終ジャッジ日時 | 2025-11-13 23:33:02 |
| 合計ジャッジ時間 | 15,556 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 39 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (125 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
#nullable enable
#region
var (_input, _iter) = (Array.Empty<string>(), 0);
T I<T>() where T : IParsable<T>
{
while (_iter >= _input.Length) (_input, _iter) = (Console.ReadLine()!.Split(' '), 0);
return T.Parse(_input[_iter++], null);
}
#endregion
I<int>();
var s = I<string>();
var x = 0;
foreach (var c in s)
{
x = (x * 2) % 3;
if (c == 'B') x = (x + 1) % 3;
}
Console.WriteLine(x == 0 ? "Bob" : "Alice");