結果

問題 No.779 Heisei
ユーザー taktak
提出日時 2019-02-02 07:11:37
言語 F#
(F# 4.0)
結果
AC  
実行時間 59 ms / 1,000 ms
コード長 433 bytes
コンパイル時間 4,302 ms
コンパイル使用メモリ 163,192 KB
実行使用メモリ 26,212 KB
最終ジャッジ日時 2023-08-06 02:07:24
合計ジャッジ時間 6,880 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
22,044 KB
testcase_01 AC 55 ms
22,268 KB
testcase_02 AC 53 ms
24,136 KB
testcase_03 AC 53 ms
22,100 KB
testcase_04 AC 57 ms
22,052 KB
testcase_05 AC 56 ms
24,092 KB
testcase_06 AC 54 ms
24,036 KB
testcase_07 AC 53 ms
24,104 KB
testcase_08 AC 55 ms
22,148 KB
testcase_09 AC 52 ms
22,208 KB
testcase_10 AC 54 ms
22,056 KB
testcase_11 AC 54 ms
22,108 KB
testcase_12 AC 52 ms
22,148 KB
testcase_13 AC 54 ms
24,112 KB
testcase_14 AC 55 ms
22,288 KB
testcase_15 AC 57 ms
26,212 KB
testcase_16 AC 55 ms
24,188 KB
testcase_17 AC 54 ms
24,324 KB
testcase_18 AC 56 ms
24,148 KB
testcase_19 AC 59 ms
22,132 KB
testcase_20 AC 55 ms
22,228 KB
testcase_21 AC 57 ms
24,156 KB
testcase_22 AC 56 ms
22,056 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

open System

let (|Heisei|_|) date =
    let heisei_begin = new DateTime(1989, 1, 8)
    let heisei_end = new DateTime(2019, 4, 30)
    if heisei_begin <= date && date <= heisei_end then
        Some(Heisei)
    else 
        None
    

let input =
    let t = stdin.ReadLine().Split()
            |> Array.map int
    new DateTime(t.[0], t.[1], t.[2])

input
|> function
    | Heisei x -> "Yes"
    | _  -> "No"
|> stdout.WriteLine
0