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