結果
| 問題 | No.312 置換処理 |
| コンテスト | |
| ユーザー |
_k_a_n_i_
|
| 提出日時 | 2015-12-06 17:41:48 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 326 bytes |
| 記録 | |
| コンパイル時間 | 2,522 ms |
| コンパイル使用メモリ | 82,240 KB |
| 実行使用メモリ | 46,540 KB |
| 最終ジャッジ日時 | 2026-04-04 13:35:40 |
| 合計ジャッジ時間 | 5,697 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 45 |
ソースコード
import java.util.*;
public class Main
{
public static void main(String... args)
{
System.out.println(calc(new Scanner(System.in).nextLong()));
}
private static long calc(long n)
{
for(int i=0; i<(int) Math.sqrt(n); ++i)
{
if(n%i == 0)
{
return i;
}
}
return n;
}
}
_k_a_n_i_