結果

問題 No.1506 Unbalanced Pocky Game
ユーザー natoriusannatoriusan
提出日時 2023-07-31 18:26:42
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 252 bytes
コンパイル時間 8,513 ms
コンパイル使用メモリ 184,408 KB
実行使用メモリ 53,092 KB
最終ジャッジ日時 2024-04-18 18:30:14
合計ジャッジ時間 16,115 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
30,336 KB
testcase_01 AC 69 ms
30,720 KB
testcase_02 AC 69 ms
30,464 KB
testcase_03 AC 72 ms
31,340 KB
testcase_04 AC 92 ms
41,308 KB
testcase_05 AC 93 ms
41,576 KB
testcase_06 AC 87 ms
39,324 KB
testcase_07 AC 79 ms
34,816 KB
testcase_08 AC 87 ms
39,756 KB
testcase_09 AC 92 ms
41,728 KB
testcase_10 AC 94 ms
41,984 KB
testcase_11 AC 79 ms
34,944 KB
testcase_12 AC 78 ms
34,560 KB
testcase_13 AC 75 ms
32,640 KB
testcase_14 WA -
testcase_15 AC 78 ms
34,424 KB
testcase_16 AC 94 ms
41,728 KB
testcase_17 AC 84 ms
36,224 KB
testcase_18 AC 78 ms
33,792 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 69 ms
30,208 KB
testcase_24 AC 69 ms
30,592 KB
testcase_25 AC 101 ms
45,056 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 111 ms
52,184 KB
testcase_29 AC 109 ms
52,472 KB
testcase_30 WA -
testcase_31 AC 111 ms
52,932 KB
testcase_32 WA -
testcase_33 AC 111 ms
52,536 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 68 ms
30,336 KB
testcase_37 WA -
testcase_38 AC 68 ms
30,464 KB
testcase_39 WA -
testcase_40 AC 69 ms
30,336 KB
testcase_41 WA -
testcase_42 AC 69 ms
30,848 KB
testcase_43 AC 69 ms
30,556 KB
testcase_44 AC 68 ms
30,976 KB
testcase_45 AC 68 ms
30,464 KB
testcase_46 AC 88 ms
38,656 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 86 ms
39,660 KB
testcase_50 WA -
testcase_51 WA -
testcase_52 AC 86 ms
39,536 KB
testcase_53 WA -
testcase_54 AC 79 ms
34,560 KB
testcase_55 AC 76 ms
33,408 KB
testcase_56 WA -
testcase_57 WA -
testcase_58 WA -
testcase_59 WA -
testcase_60 AC 79 ms
34,944 KB
testcase_61 WA -
testcase_62 WA -
testcase_63 AC 79 ms
34,688 KB
testcase_64 AC 86 ms
39,424 KB
testcase_65 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (238 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 int64

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