結果

問題 No.293 4>7の世界
ユーザー taktak
提出日時 2019-06-26 00:53:58
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 434 bytes
コンパイル時間 5,324 ms
コンパイル使用メモリ 162,496 KB
実行使用メモリ 24,348 KB
最終ジャッジ日時 2023-09-05 19:06:45
合計ジャッジ時間 7,221 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
24,224 KB
testcase_01 AC 61 ms
22,120 KB
testcase_02 AC 61 ms
22,216 KB
testcase_03 WA -
testcase_04 AC 62 ms
24,228 KB
testcase_05 WA -
testcase_06 AC 62 ms
22,304 KB
testcase_07 AC 62 ms
24,156 KB
testcase_08 AC 61 ms
22,296 KB
testcase_09 WA -
testcase_10 AC 62 ms
22,100 KB
testcase_11 AC 62 ms
24,148 KB
testcase_12 AC 62 ms
24,348 KB
testcase_13 AC 61 ms
22,304 KB
testcase_14 AC 61 ms
22,200 KB
testcase_15 WA -
testcase_16 AC 62 ms
22,108 KB
testcase_17 AC 62 ms
24,080 KB
testcase_18 AC 61 ms
22,120 KB
testcase_19 AC 62 ms
22,184 KB
testcase_20 AC 62 ms
24,212 KB
testcase_21 AC 61 ms
22,036 KB
testcase_22 AC 62 ms
22,172 KB
testcase_23 AC 65 ms
24,148 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

module Yuki

open System

let solve a b =
    let swap4and7 =
        string
        >> fun x -> x.Replace('4', 't')
        >> fun x -> x.Replace('7', '4')
        >> fun x -> x.Replace('t', '7')
        >> int64
    let a' = swap4and7 a
    let b' = swap4and7 b
    if a' > b' then a
    else b

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

solve A B
|> Console.WriteLine
0