結果
| 問題 |
No.395 永遠の17歳
|
| コンテスト | |
| ユーザー |
ikd
|
| 提出日時 | 2016-07-15 22:43:04 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 363 bytes |
| コンパイル時間 | 432 ms |
| コンパイル使用メモリ | 58,880 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-15 04:33:36 |
| 合計ジャッジ時間 | 1,023 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 WA * 2 |
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
#define rep(i, n) for(int i=0; i<(n); i++)
using namespace std;
int main(){
int A;
cin>> A;
for(int x=2; ; x++){
if(A==x*1+7){
cout<< x<< endl;
break;
}else if(A<x*1+7){
cout<< -1<< endl;
break;
}
}
return 0;
}
ikd