結果

問題 No.1057 素敵な日
ユーザー taktak
提出日時 2020-06-25 12:30:26
言語 F#
(F# 4.0)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 177 bytes
コンパイル時間 3,187 ms
コンパイル使用メモリ 162,284 KB
実行使用メモリ 24,796 KB
最終ジャッジ日時 2023-09-16 22:35:41
合計ジャッジ時間 4,612 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
22,744 KB
testcase_01 AC 82 ms
22,696 KB
testcase_02 AC 82 ms
24,796 KB
testcase_03 AC 84 ms
24,752 KB
testcase_04 AC 83 ms
22,756 KB
testcase_05 AC 83 ms
22,672 KB
testcase_06 AC 84 ms
22,720 KB
testcase_07 AC 82 ms
22,780 KB
testcase_08 AC 83 ms
22,780 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 (A, B) = 
    let t = Console.ReadLine().Split() |> Array.map int 
    t.[0], t.[1]

if A = B then 
    A + B - 1
else 
    min A B 
    |> (*) 2
|> printf "%i"
0