結果

問題 No.1506 Unbalanced Pocky Game
ユーザー natoriusannatoriusan
提出日時 2023-07-31 18:22:56
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 244 bytes
コンパイル時間 14,557 ms
コンパイル使用メモリ 189,124 KB
実行使用メモリ 51,680 KB
最終ジャッジ日時 2024-04-18 18:26:05
合計ジャッジ時間 19,184 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
30,592 KB
testcase_01 AC 68 ms
30,588 KB
testcase_02 AC 68 ms
30,336 KB
testcase_03 AC 80 ms
31,232 KB
testcase_04 AC 91 ms
40,412 KB
testcase_05 AC 90 ms
40,448 KB
testcase_06 AC 83 ms
38,576 KB
testcase_07 AC 78 ms
34,304 KB
testcase_08 AC 86 ms
38,400 KB
testcase_09 AC 93 ms
40,680 KB
testcase_10 AC 91 ms
40,924 KB
testcase_11 AC 79 ms
34,432 KB
testcase_12 AC 79 ms
34,048 KB
testcase_13 AC 72 ms
32,512 KB
testcase_14 WA -
testcase_15 AC 76 ms
33,920 KB
testcase_16 AC 95 ms
40,704 KB
testcase_17 AC 82 ms
35,456 KB
testcase_18 AC 75 ms
33,664 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 68 ms
30,720 KB
testcase_24 AC 67 ms
30,592 KB
testcase_25 AC 99 ms
43,520 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 108 ms
50,796 KB
testcase_29 AC 108 ms
51,100 KB
testcase_30 WA -
testcase_31 AC 111 ms
51,296 KB
testcase_32 WA -
testcase_33 AC 107 ms
50,992 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 67 ms
30,720 KB
testcase_37 WA -
testcase_38 AC 68 ms
30,592 KB
testcase_39 WA -
testcase_40 AC 68 ms
30,336 KB
testcase_41 WA -
testcase_42 AC 67 ms
30,464 KB
testcase_43 AC 67 ms
30,464 KB
testcase_44 AC 67 ms
30,592 KB
testcase_45 AC 66 ms
30,592 KB
testcase_46 AC 81 ms
38,124 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 88 ms
38,784 KB
testcase_50 WA -
testcase_51 WA -
testcase_52 AC 83 ms
39,144 KB
testcase_53 WA -
testcase_54 AC 77 ms
34,176 KB
testcase_55 AC 74 ms
33,272 KB
testcase_56 WA -
testcase_57 WA -
testcase_58 WA -
testcase_59 WA -
testcase_60 AC 81 ms
34,560 KB
testcase_61 WA -
testcase_62 WA -
testcase_63 AC 78 ms
34,668 KB
testcase_64 AC 86 ms
38,760 KB
testcase_65 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (368 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 #

let n = stdin.ReadLine () |> int
let a = stdin.ReadLine().Split " " |> Array.map int

a |> Array.mapi (fun index n -> if index % 2 = 0 then 1 elif n > 1 then 2 else 1) |> Array.sum |> fun x -> printfn "%s" (if x % 2 = 1 then "Alice" else "Bob")
0