結果
| 問題 | No.312 置換処理 |
| コンテスト | |
| ユーザー |
kiridaruma
|
| 提出日時 | 2015-12-07 16:14:29 |
| 言語 | D (dmd 2.112.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 322 bytes |
| 記録 | |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 76,160 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-25 22:03:53 |
| 合計ジャッジ時間 | 2,105 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 39 WA * 6 |
ソースコード
import std.stdio, std.conv, std.string, std.math;
void main() {
ulong n = readln.chomp.to!ulong;
ulong max = n.to!real.sqrt.to!ulong;
for(ulong cnt = 3; cnt <= max; cnt++){
if(n % cnt == 0){
cnt.writeln;
return;
}
}
n.writeln;
}
kiridaruma