結果

問題 No.395 永遠の17歳
ユーザー okayunonaha
提出日時 2016-07-15 22:45:25
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 219 bytes
コンパイル時間 411 ms
コンパイル使用メモリ 53,848 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-15 04:34:02
合計ジャッジ時間 940 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(void) {
	int A, X = -1;

	cin >> A;
		for (int i = 2; i * 1 + 7 < 110; i++) {
			if (A == 7 + i * 1) {
				X = i;
				break;
			}
		}

	cout << X << endl;
	return 0;
}
0