結果

問題 No.395 永遠の17歳
ユーザー srup٩(๑`н´๑)۶
提出日時 2016-07-16 00:47:00
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 219 bytes
コンパイル時間 494 ms
コンパイル使用メモリ 55,032 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-05 01:08:51
合計ジャッジ時間 1,089 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <cstdio>
using namespace std;

int main(void){
	int n; cin >> n;
	if(n <= 14){
		printf("-1\n");
		return 0;
	}else{
		printf("%d\n", n - 7);
		return 0;
	}
	return 0;
}
0