結果
問題 | No.537 ユーザーID |
ユーザー |
|
提出日時 | 2017-10-29 20:17:52 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 434 bytes |
コンパイル時間 | 3,371 ms |
コンパイル使用メモリ | 74,128 KB |
実行使用メモリ | 41,400 KB |
最終ジャッジ日時 | 2024-11-22 05:33:55 |
合計ジャッジ時間 | 9,245 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 20 WA * 12 |
ソースコード
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(n % rootN == 0) result--; System.out.println(result); } }