結果

問題 No.779 Heisei
ユーザー chikepluschikeplus
提出日時 2019-01-24 13:13:08
言語 F#
(F# 4.0)
結果
AC  
実行時間 62 ms / 1,000 ms
コード長 564 bytes
コンパイル時間 13,719 ms
コンパイル使用メモリ 186,600 KB
実行使用メモリ 30,592 KB
最終ジャッジ日時 2024-04-23 20:25:26
合計ジャッジ時間 15,998 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
30,336 KB
testcase_01 AC 60 ms
30,464 KB
testcase_02 AC 60 ms
30,336 KB
testcase_03 AC 59 ms
30,336 KB
testcase_04 AC 59 ms
30,336 KB
testcase_05 AC 61 ms
30,592 KB
testcase_06 AC 59 ms
30,464 KB
testcase_07 AC 60 ms
30,336 KB
testcase_08 AC 56 ms
30,576 KB
testcase_09 AC 57 ms
30,336 KB
testcase_10 AC 59 ms
30,576 KB
testcase_11 AC 61 ms
30,336 KB
testcase_12 AC 58 ms
30,464 KB
testcase_13 AC 56 ms
30,464 KB
testcase_14 AC 62 ms
30,464 KB
testcase_15 AC 60 ms
30,336 KB
testcase_16 AC 59 ms
30,336 KB
testcase_17 AC 56 ms
30,464 KB
testcase_18 AC 58 ms
30,464 KB
testcase_19 AC 58 ms
30,336 KB
testcase_20 AC 57 ms
30,336 KB
testcase_21 AC 59 ms
30,592 KB
testcase_22 AC 61 ms
30,080 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (379 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/

ソースコード

diff #

let inputs = System.Console.ReadLine().Split(' ')
let args = [for str in inputs do yield int(str) ]

let checkDate(y , m , d)= 
    match ( y , m , d) with
    | y , _ , _ when ( 1990 <= y ) && ( y <= 2018 ) -> printfn "Yes"
    | y , m , d when ( 1989 = y ) && ( m > 1 )      -> printfn "Yes"
    | y , m , d when ( 1989 = y ) && ( m = 1 ) && (d >= 8) -> printfn "Yes"
    | y , m , d when ( 2019 = y ) && ( m <=4 ) -> printfn "Yes" 
    | _ , _ , _ -> printfn "No"

let ( y , m , d ) = ( List.head args, List.item 1 args, List.item 2 args)
checkDate ( y , m , d)
0