結果

問題 No.395 永遠の17歳
ユーザー chike_pluschike_plus
提出日時 2019-04-02 11:42:55
言語 F#
(F# 4.0)
結果
AC  
実行時間 52 ms / 1,000 ms
コード長 227 bytes
コンパイル時間 4,637 ms
コンパイル使用メモリ 150,504 KB
実行使用メモリ 24,232 KB
最終ジャッジ日時 2023-08-19 12:16:00
合計ジャッジ時間 6,654 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
22,152 KB
testcase_01 AC 52 ms
22,052 KB
testcase_02 AC 49 ms
22,068 KB
testcase_03 AC 49 ms
22,148 KB
testcase_04 AC 50 ms
24,164 KB
testcase_05 AC 52 ms
22,052 KB
testcase_06 AC 51 ms
24,176 KB
testcase_07 AC 49 ms
22,236 KB
testcase_08 AC 49 ms
22,076 KB
testcase_09 AC 50 ms
22,184 KB
testcase_10 AC 49 ms
22,264 KB
testcase_11 AC 49 ms
22,072 KB
testcase_12 AC 48 ms
24,232 KB
testcase_13 AC 49 ms
22,232 KB
testcase_14 AC 50 ms
24,192 KB
testcase_15 AC 48 ms
22,144 KB
testcase_16 AC 49 ms
22,092 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let ``No.395 永遠の17歳``() =

  let a = stdin.ReadLine() |> int

  // X進表記
  match a % (a-7) = 7 , a / (a-7) = 1 with
  | true, true -> a-7
  |  _  ,  _   -> -1
  |> stdout.WriteLine

  ()
``No.395 永遠の17歳``()
0