結果
| 問題 | No.136 Yet Another GCD Problem |
| コンテスト | |
| ユーザー |
kcm1700
|
| 提出日時 | 2015-01-25 23:31:25 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| + 517µs | |
| コード長 | 232 bytes |
| 記録 | |
| コンパイル時間 | 139 ms |
| コンパイル使用メモリ | 49,844 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-27 13:53:26 |
| 合計ジャッジ時間 | 2,140 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 39 |
ソースコード
#include <cstdio>
#include <algorithm>
using namespace std;
int main(){
int n,k;
scanf("%d%d",&n,&k);
int ans = 0;
for (int x = 1; x < n; x++) {
if (n%x) continue;
ans = x;
}
printf("%d\n", ans);
return 0;
}
kcm1700