結果

問題 No.395 永遠の17歳
ユーザー bluemeganebluemegane
提出日時 2018-09-18 09:50:03
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 1,000 ms
コード長 223 bytes
コンパイル時間 3,739 ms
コンパイル使用メモリ 100,872 KB
実行使用メモリ 22,784 KB
最終ジャッジ日時 2023-09-25 09:42:58
合計ジャッジ時間 5,119 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
20,668 KB
testcase_01 AC 55 ms
18,712 KB
testcase_02 AC 56 ms
22,592 KB
testcase_03 AC 56 ms
20,520 KB
testcase_04 AC 56 ms
20,668 KB
testcase_05 AC 57 ms
20,584 KB
testcase_06 AC 57 ms
20,556 KB
testcase_07 AC 57 ms
22,720 KB
testcase_08 AC 56 ms
20,768 KB
testcase_09 AC 56 ms
20,736 KB
testcase_10 AC 56 ms
22,656 KB
testcase_11 AC 57 ms
20,780 KB
testcase_12 AC 56 ms
20,676 KB
testcase_13 AC 56 ms
20,840 KB
testcase_14 AC 56 ms
22,784 KB
testcase_15 AC 55 ms
18,536 KB
testcase_16 AC 56 ms
20,684 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Hello
{
    public static void Main()
    {
        var a = int.Parse(Console.ReadLine().Trim());
        var res = a - 7;
        if (res <= 7) res = -1;
        Console.WriteLine(res);
    }
}
0