結果

問題 No.136 Yet Another GCD Problem
ユーザー fiord
提出日時 2015-07-01 22:53:52
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 186 bytes
コンパイル時間 1,326 ms
コンパイル使用メモリ 158,236 KB
実行使用メモリ 6,816 KB
最終ジャッジ日時 2024-07-07 21:48:09
合計ジャッジ時間 2,679 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 39
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
	int n,k;	cin>>n>>k;
	for(int i=2;i<=k;i++){
		if(n%i==0){
			cout<<n/i<<endl;
			return 0;
		}
	}
	cout<<1<<endl;
	return 0;
}
0