結果

問題 No.1506 Unbalanced Pocky Game
ユーザー 👑 kakel-sankakel-san
提出日時 2024-06-16 22:41:32
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 596 bytes
コンパイル時間 8,339 ms
コンパイル使用メモリ 166,604 KB
実行使用メモリ 189,648 KB
最終ジャッジ日時 2024-06-16 22:42:00
合計ジャッジ時間 17,685 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
29,812 KB
testcase_01 AC 56 ms
29,820 KB
testcase_02 AC 56 ms
29,952 KB
testcase_03 AC 59 ms
30,592 KB
testcase_04 AC 85 ms
38,348 KB
testcase_05 AC 87 ms
40,576 KB
testcase_06 AC 78 ms
36,480 KB
testcase_07 AC 77 ms
34,560 KB
testcase_08 AC 79 ms
36,352 KB
testcase_09 AC 87 ms
40,960 KB
testcase_10 AC 90 ms
40,832 KB
testcase_11 AC 76 ms
34,792 KB
testcase_12 AC 75 ms
34,432 KB
testcase_13 AC 73 ms
32,896 KB
testcase_14 AC 76 ms
34,784 KB
testcase_15 AC 76 ms
34,304 KB
testcase_16 AC 87 ms
40,808 KB
testcase_17 AC 77 ms
35,840 KB
testcase_18 AC 74 ms
33,920 KB
testcase_19 AC 74 ms
33,640 KB
testcase_20 AC 87 ms
40,808 KB
testcase_21 AC 76 ms
34,688 KB
testcase_22 AC 80 ms
36,992 KB
testcase_23 AC 59 ms
29,820 KB
testcase_24 AC 56 ms
29,816 KB
testcase_25 AC 91 ms
43,368 KB
testcase_26 AC 102 ms
50,604 KB
testcase_27 AC 102 ms
51,160 KB
testcase_28 AC 102 ms
50,532 KB
testcase_29 AC 104 ms
50,572 KB
testcase_30 AC 106 ms
50,816 KB
testcase_31 AC 104 ms
51,292 KB
testcase_32 AC 104 ms
50,864 KB
testcase_33 AC 103 ms
50,816 KB
testcase_34 AC 131 ms
50,416 KB
testcase_35 AC 101 ms
50,412 KB
testcase_36 AC 59 ms
30,312 KB
testcase_37 AC 58 ms
30,592 KB
testcase_38 AC 58 ms
30,208 KB
testcase_39 AC 58 ms
29,932 KB
testcase_40 AC 57 ms
30,080 KB
testcase_41 AC 58 ms
29,948 KB
testcase_42 AC 66 ms
30,060 KB
testcase_43 AC 57 ms
30,336 KB
testcase_44 AC 58 ms
30,464 KB
testcase_45 AC 58 ms
30,080 KB
testcase_46 AC 85 ms
38,140 KB
testcase_47 AC 81 ms
33,768 KB
testcase_48 AC 75 ms
34,152 KB
testcase_49 AC 85 ms
39,144 KB
testcase_50 AC 82 ms
38,400 KB
testcase_51 AC 87 ms
38,764 KB
testcase_52 AC 87 ms
37,496 KB
testcase_53 AC 88 ms
40,960 KB
testcase_54 AC 81 ms
34,560 KB
testcase_55 AC 77 ms
33,792 KB
testcase_56 AC 74 ms
33,792 KB
testcase_57 AC 83 ms
38,376 KB
testcase_58 AC 77 ms
33,280 KB
testcase_59 AC 80 ms
32,512 KB
testcase_60 AC 77 ms
35,072 KB
testcase_61 AC 83 ms
38,272 KB
testcase_62 AC 81 ms
36,960 KB
testcase_63 AC 76 ms
34,816 KB
testcase_64 AC 85 ms
38,784 KB
testcase_65 AC 78 ms
189,648 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (101 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/

ソースコード

diff #

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();
    public static void Main()
    {
        Solve();
    }
    static void Solve()
    {
        var n = NN;
        var a = NList;
        var ans = true;
        for (var i = 1; i < n; ++i)
        {
            if (!ans) ans = true;
            else if (a[i] == 1) ans = false;
        }
        WriteLine(ans ? "Alice" : "Bob");
    }
}
0