結果

問題 No.201 yukicoderじゃんけん
ユーザー chike_pluschike_plus
提出日時 2019-04-02 09:57:35
言語 F#
(F# 4.0)
結果
AC  
実行時間 54 ms / 5,000 ms
コード長 487 bytes
コンパイル時間 4,756 ms
コンパイル使用メモリ 154,648 KB
実行使用メモリ 24,380 KB
最終ジャッジ日時 2023-08-19 06:41:31
合計ジャッジ時間 6,941 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
22,256 KB
testcase_01 AC 49 ms
22,224 KB
testcase_02 AC 49 ms
22,288 KB
testcase_03 AC 46 ms
21,836 KB
testcase_04 AC 47 ms
23,864 KB
testcase_05 AC 49 ms
24,336 KB
testcase_06 AC 50 ms
24,380 KB
testcase_07 AC 49 ms
22,300 KB
testcase_08 AC 50 ms
22,292 KB
testcase_09 AC 51 ms
24,292 KB
testcase_10 AC 48 ms
21,828 KB
testcase_11 AC 50 ms
22,296 KB
testcase_12 AC 51 ms
22,320 KB
testcase_13 AC 49 ms
22,336 KB
testcase_14 AC 46 ms
21,740 KB
testcase_15 AC 49 ms
23,896 KB
testcase_16 AC 50 ms
22,168 KB
testcase_17 AC 49 ms
24,252 KB
testcase_18 AC 54 ms
24,272 KB
testcase_19 AC 50 ms
20,340 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let ``No.201 yukicoderじゃんけん``() =

  let sa, pa, xa =
    stdin.ReadLine().Split(' ') |> fun args -> args.[0], args.[1], args.[2]

  let sb, pb, xb =
    stdin.ReadLine().Split(' ') |> fun args -> args.[0], args.[1], args.[2]

  match pa.Length ,pb.Length with
  | a , b  when a > b -> sa
  | a , b  when a < b -> sb
  | a , b  -> if pa > pb then sa
              elif pa < pb then sb
              else "-1"
  |> stdout.WriteLine
  

  ()
``No.201 yukicoderじゃんけん``()
0