結果

問題 No.395 永遠の17歳
ユーザー taktak
提出日時 2018-04-13 14:53:41
言語 F#
(F# 4.0)
結果
AC  
実行時間 83 ms / 1,000 ms
コード長 122 bytes
コンパイル時間 3,221 ms
コンパイル使用メモリ 154,224 KB
実行使用メモリ 24,816 KB
最終ジャッジ日時 2023-09-09 04:33:07
合計ジャッジ時間 5,530 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
24,728 KB
testcase_01 AC 82 ms
24,816 KB
testcase_02 AC 82 ms
22,724 KB
testcase_03 AC 82 ms
24,812 KB
testcase_04 AC 81 ms
22,748 KB
testcase_05 AC 82 ms
20,780 KB
testcase_06 AC 82 ms
22,764 KB
testcase_07 AC 81 ms
22,728 KB
testcase_08 AC 80 ms
20,704 KB
testcase_09 AC 81 ms
22,664 KB
testcase_10 AC 81 ms
22,804 KB
testcase_11 AC 82 ms
22,752 KB
testcase_12 AC 81 ms
22,752 KB
testcase_13 AC 81 ms
22,928 KB
testcase_14 AC 82 ms
24,760 KB
testcase_15 AC 80 ms
22,772 KB
testcase_16 AC 83 ms
22,760 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let A = stdin.ReadLine() |> int

if A >= 17 then
    A-7
elif A >= 15 then
    10 - (17-A)
else
    -1
|> printfn "%i"    
0