結果
| 問題 |
No.537 ユーザーID
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-10-29 20:20:35 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 453 bytes |
| コンパイル時間 | 3,282 ms |
| コンパイル使用メモリ | 74,764 KB |
| 実行使用メモリ | 41,484 KB |
| 最終ジャッジ日時 | 2024-11-22 05:34:05 |
| 合計ジャッジ時間 | 8,947 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 13 |
ソースコード
package yukicoder;
import java.util.Scanner;
public class No537 {
public static void main(String[] args) {
long n = new Scanner(System.in).nextLong();
long rootN = (long)Math.pow(n, 0.5);
int cnt = 0, result;
for(int i = 1; i <= rootN; i++) {
if(n % i == 0) cnt++;
}
result = 2 * cnt;
if(Math.pow(n, 0.5) == (double)rootN) result--;
System.out.println(result);
}
}