結果
問題 | No.197 手品 |
ユーザー | guricerin |
提出日時 | 2020-01-30 15:30:27 |
言語 | F# (F# 4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,280 bytes |
コンパイル時間 | 3,591 ms |
コンパイル使用メモリ | 164,980 KB |
実行使用メモリ | 24,472 KB |
最終ジャッジ日時 | 2023-10-14 08:28:26 |
合計ジャッジ時間 | 9,103 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 62 ms
22,396 KB |
testcase_01 | AC | 61 ms
22,336 KB |
testcase_02 | AC | 60 ms
20,232 KB |
testcase_03 | AC | 60 ms
22,428 KB |
testcase_04 | AC | 62 ms
22,332 KB |
testcase_05 | AC | 62 ms
22,312 KB |
testcase_06 | WA | - |
testcase_07 | AC | 60 ms
22,200 KB |
testcase_08 | AC | 61 ms
22,204 KB |
testcase_09 | AC | 61 ms
22,212 KB |
testcase_10 | AC | 61 ms
24,344 KB |
testcase_11 | AC | 62 ms
24,320 KB |
testcase_12 | AC | 60 ms
22,164 KB |
testcase_13 | AC | 60 ms
22,300 KB |
testcase_14 | AC | 60 ms
22,184 KB |
testcase_15 | AC | 60 ms
24,360 KB |
testcase_16 | AC | 61 ms
22,160 KB |
testcase_17 | AC | 61 ms
20,344 KB |
testcase_18 | AC | 61 ms
22,432 KB |
testcase_19 | AC | 60 ms
22,256 KB |
testcase_20 | AC | 61 ms
22,172 KB |
testcase_21 | AC | 61 ms
22,176 KB |
testcase_22 | AC | 60 ms
22,284 KB |
testcase_23 | AC | 60 ms
22,300 KB |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | AC | 60 ms
22,340 KB |
testcase_28 | WA | - |
testcase_29 | AC | 63 ms
22,184 KB |
testcase_30 | AC | 61 ms
20,116 KB |
testcase_31 | AC | 62 ms
24,372 KB |
testcase_32 | AC | 60 ms
22,196 KB |
testcase_33 | AC | 62 ms
20,392 KB |
testcase_34 | WA | - |
testcase_35 | AC | 62 ms
20,372 KB |
testcase_36 | AC | 61 ms
22,172 KB |
testcase_37 | AC | 61 ms
22,272 KB |
testcase_38 | WA | - |
testcase_39 | AC | 61 ms
22,444 KB |
testcase_40 | AC | 60 ms
22,352 KB |
testcase_41 | AC | 62 ms
24,320 KB |
testcase_42 | AC | 61 ms
22,272 KB |
testcase_43 | AC | 61 ms
22,492 KB |
testcase_44 | AC | 61 ms
24,300 KB |
testcase_45 | AC | 61 ms
22,336 KB |
testcase_46 | AC | 61 ms
22,492 KB |
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0 Copyright (c) Microsoft Corporation. All Rights Reserved.
ソースコード
open System open System.Collections.Generic [<AutoOpen>] module Cin = let read f = stdin.ReadLine() |> f let reada f = stdin.ReadLine().Split() |> Array.map f let readChars() = read string |> Seq.toArray let readInts() = readChars() |> Array.map (fun x -> Convert.ToInt32(x.ToString())) [<AutoOpen>] module Cout = let writer = new IO.StreamWriter(new IO.BufferedStream(Console.OpenStandardOutput())) let print (s: string) = writer.Write s let println (s: string) = writer.WriteLine s let inline puts (s: ^a) = string s |> println let main() = let b = read string let n = read int64 let a = read string let yes = "SUCCESS" let no = "FAILURE" let bo = b |> Seq.filter (fun c -> c = 'o') |> Seq.length let ao = a |> Seq.filter (fun c -> c = 'o') |> Seq.length if b = "ooo" then if a = "ooo" then puts no else puts yes elif b = "xxx" then if a = "xxx" then puts no else puts yes else match n with | 0L -> if b = a then puts no else puts yes | 1L -> if b <> a && bo = ao then puts yes else puts no | _ -> if bo = ao then puts no else puts yes () main() writer.Close()