結果
| 問題 |
No.537 ユーザーID
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-07-02 13:32:59 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 488 bytes |
| コンパイル時間 | 2,372 ms |
| コンパイル使用メモリ | 73,908 KB |
| 実行使用メモリ | 55,800 KB |
| 最終ジャッジ日時 | 2024-10-05 07:24:09 |
| 合計ジャッジ時間 | 6,773 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 13 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner s = new Scanner(System.in);
String str = s.next();
s.close();
long n = Long.parseLong(str);
long count = 0;
double sqrt = Math.sqrt((double)n);
long heihou = (long) Math.floor(Math.sqrt((double)n));
if(sqrt==(double)heihou){
count--;
}
for(long i= 1;i<=heihou;i++){
if(n%i==0){
count++;
count++;
}
}
System.out.println(count);
}
}