結果

問題 No.395 永遠の17歳
ユーザー yukiteru
提出日時 2018-02-06 21:28:40
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 1,000 ms
コード長 576 bytes
コンパイル時間 1,517 ms
コンパイル使用メモリ 80,772 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-19 06:57:21
合計ジャッジ時間 1,538 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
#include<string.h>
#include<algorithm>
#include<stdio.h>
#include<cmath>
#include<vector>
#include<utility>
#include<stack>
#include<queue>
#include<list>
#include<bitset>
#include<functional>

#define FOR(i, a, b) for(int i=(a);i<=(b);i++)
#define RFOR(i, a, b) for(int i=(a);i>=(b);i--)
#define MOD 1000000007
#define INF 1000000000
#define PI 3.14159265358979

using namespace std;
typedef pair<int, int> P;

int main(void) {
	int a;

	cin >> a;

	if (a <= 14) {
		cout << -1 << endl;
	}
	else {
		cout << a - 7 << endl;
	}

	return 0;
}
0