結果

問題 No.395 永遠の17歳
ユーザー LogicR_pimanLogicR_piman
提出日時 2016-09-09 05:23:05
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 177 bytes
コンパイル時間 574 ms
コンパイル使用メモリ 55,408 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-05 02:15:27
合計ジャッジ時間 1,270 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;

int main()
{
	int n, a;
	cin >> n;
	if (n < 15) {
		cout << -1 << endl;
	}
	else {
		a = n - 7;
		cout << a << endl;
	}
	return 0;
}



0