結果
| 問題 |
No.395 永遠の17歳
|
| コンテスト | |
| ユーザー |
yosupot
|
| 提出日時 | 2016-07-15 22:36:40 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 586 bytes |
| コンパイル時間 | 936 ms |
| コンパイル使用メモリ | 99,544 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-05 00:48:21 |
| 合計ジャッジ時間 | 1,753 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
ソースコード
#include <iostream>
#include <cstdio>
#include <cassert>
#include <cstring>
#include <vector>
#include <valarray>
#include <array>
#include <queue>
#include <set>
#include <unordered_set>
#include <map>
#include <unordered_map>
#include <algorithm>
#include <cmath>
#include <complex>
#include <random>
using namespace std;
using ll = long long;
using ull = unsigned long long;
constexpr int TEN(int n) {return (n==0)?1:10*TEN(n-1);}
int main() {
int n;
cin >> n;
if (n-7 <= 7) {
cout << -1 << endl;
return 0;
}
cout << n-7 << endl;
return 0;
}
yosupot