結果
| 問題 |
No.601 Midpoint Erase
|
| コンテスト | |
| ユーザー |
No
|
| 提出日時 | 2018-04-28 13:51:21 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 181 ms / 2,000 ms |
| コード長 | 815 bytes |
| コンパイル時間 | 786 ms |
| コンパイル使用メモリ | 102,784 KB |
| 実行使用メモリ | 21,888 KB |
| 最終ジャッジ日時 | 2024-06-27 23:17:32 |
| 合計ジャッジ時間 | 3,953 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
namespace y
{
class Program
{
static void Main(string[] args)
{
var n = int.Parse(Console.ReadLine());
int oo = 0;
int oe = 0;
int eo = 0;
int ee = 0;
for (int i = 1; i <= n; i++)
{
var ss = Console.ReadLine().Split();
if (int.Parse(ss[0]) % 2 == 1 && int.Parse(ss[1]) % 2 == 1) oo++;
if (int.Parse(ss[0]) % 2 == 1 && int.Parse(ss[1]) % 2 == 0) oe++;
if (int.Parse(ss[0]) % 2 == 0 && int.Parse(ss[1]) % 2 == 1) eo++;
if (int.Parse(ss[0]) % 2 == 0 && int.Parse(ss[1]) % 2 == 0) ee++;
}
Console.WriteLine((oo / 2 + oe / 2 + eo / 2 + ee / 2) % 2 == 0 ? "Bob" : "Alice");
}
}
}
No