結果
| 問題 | No.395 永遠の17歳 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-07-19 12:48:26 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 274 bytes |
| コンパイル時間 | 377 ms |
| コンパイル使用メモリ | 55,260 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-05 01:47:46 |
| 合計ジャッジ時間 | 949 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
ソースコード
#include <iostream>
using namespace std;
int main()
{
int in,base,base_ans=-1;
cin>>in;
for(base=2; base<100; base++){
if(in-base == 7){
base_ans = base;
break;
}
}
if(base_ans<=7){
base_ans = -1;
}
cout<<base_ans<<endl;
return 0;
}