結果

問題 No.395 永遠の17歳
ユーザー yuma25689yuma25689
提出日時 2016-07-15 23:00:17
言語 C++11
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 425 bytes
コンパイル時間 501 ms
コンパイル使用メモリ 58,948 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-15 04:40:56
合計ジャッジ時間 1,125 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>

using namespace std;


void solve()
{
    int A;
    cin >> A;
    
    int ans = -1;
    
    for( int base=2; 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;
}
0