結果

問題 No.395 永遠の17歳
ユーザー abL8ZLsTbFabL8ZLsTbF
提出日時 2016-07-16 16:01:53
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 21 ms / 1,000 ms
コード長 207 bytes
コンパイル時間 980 ms
コンパイル使用メモリ 108,720 KB
実行使用メモリ 25,684 KB
最終ジャッジ日時 2024-10-05 01:14:50
合計ジャッジ時間 1,558 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

public class Program
{
	public static void Main()
	{
		const int MIN = 8 + 7;
		int age = int.Parse(Console.ReadLine());
		Console.WriteLine(age >= MIN ? age - 7 : -1);
	}
}
0