結果
| 問題 | No.88 次はどっちだ |
| コンテスト | |
| ユーザー |
Adamantite
|
| 提出日時 | 2023-06-28 17:13:12 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 46 ms / 5,000 ms |
| コード長 | 533 bytes |
| 記録 | |
| コンパイル時間 | 8,682 ms |
| コンパイル使用メモリ | 168,740 KB |
| 実行使用メモリ | 183,460 KB |
| 最終ジャッジ日時 | 2024-07-05 10:22:39 |
| 合計ジャッジ時間 | 9,906 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (86 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;
using System.Linq;
namespace No88_WhichOneIsNext
{
internal class Program
{
static void Main(string[] args) {
string s = Console.ReadLine();
string first = s;
string second = s == "oda" ? "yukiko" : "oda";
int count = 0;
for(int i = 0; i < 8; i++) {
string b = Console.ReadLine();
count += b.Count(x => x != '.');
}
Console.WriteLine(count % 2 == 0 ? first : second);
}
}
}
Adamantite