結果

問題 No.136 Yet Another GCD Problem
ユーザー なおなお
提出日時 2015-01-25 23:31:36
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 408 bytes
コンパイル時間 1,315 ms
コンパイル使用メモリ 157,396 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-23 02:55:10
合計ジャッジ時間 2,460 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 39
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> VI;
typedef vector<VI> VVI;
#define REP(i, n)           for(int(i)=0;(i)<(n);++(i))
const int MOD = int(1e9+7);

ll N,K;

int main(){
    cin >> N >> K;

    for(int i = 2; i < N; i++){
        if(N % i == 0){
            cout << N/i << endl;
            return 0;
        }
    }
    cout << 1 << endl;
    return 0;
}
0