結果
| 問題 |
No.395 永遠の17歳
|
| コンテスト | |
| ユーザー |
chacoder1
|
| 提出日時 | 2021-02-14 10:49:51 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 8 ms / 1,000 ms |
| コード長 | 225 bytes |
| コンパイル時間 | 3,036 ms |
| コンパイル使用メモリ | 190,528 KB |
| 最終ジャッジ日時 | 2025-01-18 20:17:12 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<n;i++)
int main(){
int a;
cin>>a;
if(a<15){
cout<<-1<<endl;
return 0;
}
cout<<a-7<<endl;
return 0;
}
chacoder1