結果
問題 |
No.537 ユーザーID
|
ユーザー |
![]() |
提出日時 | 2017-09-07 21:04:32 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 659 bytes |
コンパイル時間 | 5,068 ms |
コンパイル使用メモリ | 74,708 KB |
実行使用メモリ | 52,280 KB |
最終ジャッジ日時 | 2024-11-07 11:09:34 |
合計ジャッジ時間 | 7,934 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 WA * 9 RE * 17 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import static java.lang.System.in; public class No537 { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(in)); int N = Integer.parseInt(reader.readLine()); int counter = 0; for (int i = 1; i * i <= N; i++) { if (N % i == 0) { if (i*i == N) { counter += 1; } else { counter += 2; } } } System.out.println(counter); } }