結果
| 問題 | No.312 置換処理 |
| コンテスト | |
| ユーザー |
kiridaruma
|
| 提出日時 | 2015-12-07 16:14:29 |
| 言語 | D (dmd 2.112.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 322 bytes |
| 記録 | |
| コンパイル時間 | 485 ms |
| コンパイル使用メモリ | 78,984 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2026-03-05 06:34:32 |
| 合計ジャッジ時間 | 1,357 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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