結果

問題 No.395 永遠の17歳
ユーザー itezpaceitezpace
提出日時 2016-07-15 22:32:26
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 234 bytes
コンパイル時間 1,150 ms
コンパイル使用メモリ 159,060 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-05 00:45:43
合計ジャッジ時間 1,836 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main(){
  int a;
  cin>>a;
  for(int i=1; i<=117; ++i){
    if(a/i==1 && a%i==7){
      cout<<i<<endl;
      return 0;
    }
  }
  cout<<-1<<endl;
  return 0;
}
0