結果
| 問題 |
No.136 Yet Another GCD Problem
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2020-02-18 03:35:13 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 226 bytes |
| コンパイル時間 | 592 ms |
| コンパイル使用メモリ | 63,936 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-06 15:22:30 |
| 合計ジャッジ時間 | 2,078 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 37 WA * 2 |
ソースコード
#include <iostream>
using namespace std;
int main(){
int n,k;cin>>n>>k;
for(int i = 2; k >= i*i; i++){
if(!(n%i)){
cout << n/i << endl;
return 0;
}
}
cout << 1 << endl;
}