結果
問題 | No.88 次はどっちだ |
ユーザー | 👑 kakel-san |
提出日時 | 2023-10-21 20:47:42 |
言語 | C# (.NET 8.0.203) |
結果 |
AC
|
実行時間 | 75 ms / 5,000 ms |
コード長 | 806 bytes |
コンパイル時間 | 10,908 ms |
コンパイル使用メモリ | 157,964 KB |
実行使用メモリ | 175,708 KB |
最終ジャッジ日時 | 2023-10-21 20:47:55 |
合計ジャッジ時間 | 8,525 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge9 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 74 ms
30,472 KB |
testcase_01 | AC | 74 ms
30,468 KB |
testcase_02 | AC | 73 ms
30,412 KB |
testcase_03 | AC | 75 ms
30,412 KB |
testcase_04 | AC | 74 ms
30,468 KB |
testcase_05 | AC | 75 ms
30,412 KB |
testcase_06 | AC | 73 ms
30,412 KB |
testcase_07 | AC | 74 ms
30,468 KB |
testcase_08 | AC | 75 ms
30,468 KB |
testcase_09 | AC | 75 ms
30,468 KB |
testcase_10 | AC | 74 ms
175,708 KB |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (100 ms)。 MSBuild のバージョン 17.7.3+8ec440e68 (.NET) main -> /home/judge/data/code/bin/Release/net7.0/main.dll main -> /home/judge/data/code/bin/Release/net7.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 string[] SList(long n) => Enumerable.Repeat(0, (int)n).Select(_ => ReadLine()).ToArray(); public static void Main() { Solve(); } static void Solve() { var s = ReadLine(); var map = SList(8); var count = 0; foreach (var si in map) foreach (var c in si) if (c != '.') ++count; if (s == "oda") { WriteLine(count % 2 == 0 ? "oda" : "yukiko"); } else { WriteLine(count % 2 == 0 ? "yukiko" : "oda"); } } }