結果

問題 No.333 門松列を数え上げ
ユーザー taktak
提出日時 2018-08-12 20:33:17
言語 F#
(F# 4.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 12,318 ms
コンパイル使用メモリ 190,340 KB
実行使用メモリ 31,060 KB
最終ジャッジ日時 2023-10-24 16:23:16
合計ジャッジ時間 14,257 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
31,060 KB
testcase_01 AC 59 ms
31,040 KB
testcase_02 AC 59 ms
31,060 KB
testcase_03 AC 60 ms
31,040 KB
testcase_04 AC 60 ms
31,040 KB
testcase_05 AC 59 ms
31,040 KB
testcase_06 AC 60 ms
31,040 KB
testcase_07 AC 59 ms
31,040 KB
testcase_08 AC 59 ms
31,040 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (696 ms)。
MSBuild のバージョン 17.7.3+8ec440e68 (.NET)
  main -> /home/judge/data/code/bin/Release/net7.0/main.dll
  main -> /home/judge/data/code/bin/Release/net7.0/publish/

ソースコード

diff #

let f a b =
    if a < b then
        b - 1 + 1 - 2
    else
        2000000000 - b + 1 - 2

let A,B = 
    let t = stdin.ReadLine().Split() |> Array.map int
    t.[0], t.[1]

f A B |> stdout.WriteLine
0