結果
| 問題 |
No.395 永遠の17歳
|
| コンテスト | |
| ユーザー |
bcat_is_so_cute
|
| 提出日時 | 2016-10-04 12:06:34 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 242 bytes |
| コンパイル時間 | 476 ms |
| コンパイル使用メモリ | 53,976 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-21 15:34:39 |
| 合計ジャッジ時間 | 1,145 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 WA * 2 |
ソースコード
#include <iostream>
using namespace std;
int main(){
int A, ans;
cin >> A;
for(int i = 2;i < 100;i++){
if(A == i * 1 + 7){
ans = i;
break;
} else if(i == 99){
ans = -1;
}
}
cout << ans << endl;
}
bcat_is_so_cute