結果

問題 No.892 タピオカ
ユーザー kuuso1kuuso1
提出日時 2019-09-27 22:05:01
言語 F#
(F# 4.0)
結果
AC  
実行時間 75 ms / 1,000 ms
コード長 420 bytes
コンパイル時間 17,100 ms
コンパイル使用メモリ 194,052 KB
実行使用メモリ 31,872 KB
最終ジャッジ日時 2023-10-24 19:41:46
合計ジャッジ時間 19,682 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
31,872 KB
testcase_01 AC 73 ms
31,872 KB
testcase_02 AC 73 ms
31,872 KB
testcase_03 AC 74 ms
31,872 KB
testcase_04 AC 74 ms
31,872 KB
testcase_05 AC 73 ms
31,872 KB
testcase_06 AC 73 ms
31,872 KB
testcase_07 AC 73 ms
31,872 KB
testcase_08 AC 73 ms
31,872 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (758 ms)。
MSBuild のバージョン 17.7.3+8ec440e68 (.NET)
/home/judge/data/code/Main.fs(9,13): warning FS0025: この式のパターン マッチが不完全です たとえば、値 '[|_; _; _; _; _; _; _|]' はパターンに含まれないケースを示す可能性があります。 [/home/judge/data/code/main.fsproj]
  main -> /home/judge/data/code/bin/Release/net7.0/main.dll
  main -> /home/judge/data/code/bin/Release/net7.0/publish/

ソースコード

diff #

open System

let ri () = stdin.ReadLine() |> int
let ria () = stdin.ReadLine().Split() |> Array.map int

type Sol() =
    member this.Solve() = 
        
        let [|A1; B1; A2; B2; A3; B3|] = ria()
        
        let tot = (A1 + A2 + A3) % 2
        
        if tot = 0 then
            printfn ":-)"
        else 
            printfn ":-("
        
        
        
        ()
let mySol = new Sol()
mySol.Solve()
0