結果
問題 | No.1506 Unbalanced Pocky Game |
ユーザー |
|
提出日時 | 2023-07-31 18:26:42 |
言語 | F# (F# 4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 252 bytes |
コンパイル時間 | 6,632 ms |
コンパイル使用メモリ | 189,208 KB |
実行使用メモリ | 53,220 KB |
最終ジャッジ日時 | 2024-10-10 11:49:58 |
合計ジャッジ時間 | 14,238 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 37 WA * 26 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (226 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/
ソースコード
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")