結果
| 問題 | No.395 永遠の17歳 |
| コンテスト | |
| ユーザー |
kyabaria
|
| 提出日時 | 2018-09-12 16:19:42 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 354 bytes |
| コンパイル時間 | 1,457 ms |
| コンパイル使用メモリ | 164,880 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-27 02:38:15 |
| 合計ジャッジ時間 | 2,121 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
ソースコード
#include <bits/stdc++.h>
typedef long long ll;
#define INF 1000000000
#define MOD 1000000007
using namespace std;
int main(void){
int a;
cin>>a;
int ans=-1;
for(int x=8;x<=1000;x++){
int num=x*1+7;
if(num==a){
ans=x;
break;
}
}
cout<<ans<<endl;
}
kyabaria