結果
| 問題 |
No.395 永遠の17歳
|
| ユーザー |
yuma25689
|
| 提出日時 | 2016-07-15 23:09:14 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 425 bytes |
| コンパイル時間 | 528 ms |
| コンパイル使用メモリ | 58,720 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-05 01:00:20 |
| 合計ジャッジ時間 | 1,212 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
void solve()
{
int A;
cin >> A;
int ans = -1;
for( int base=8; base<A; base++ )
{
if( base+7 == A )
{
ans = base;
break;
}
}
cout << ans <<endl;
}
int main()
{
cin.tie(0);
ios::sync_with_stdio(false);
solve();
return 0;
}
yuma25689