結果
問題 |
No.136 Yet Another GCD Problem
|
ユーザー |
|
提出日時 | 2021-01-17 10:57:53 |
言語 | D (dmd 2.109.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 226 bytes |
コンパイル時間 | 618 ms |
コンパイル使用メモリ | 96,944 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-22 10:38:03 |
合計ジャッジ時間 | 1,834 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 25 |
ソースコード
import std.stdio; import std.array; import std.conv; void main(){ auto l=readln.split.to!(int[]); auto n=l[0]; auto k=l[1]; auto i=1; auto r=1; while(i*2<=n&&i*k<=n){ if(n%i==0){ r=i; } i+=1; } writeln(r); }