結果
問題 |
No.847 Divisors of Power
|
ユーザー |
|
提出日時 | 2019-07-26 11:14:39 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 589 bytes |
コンパイル時間 | 3,541 ms |
コンパイル使用メモリ | 74,628 KB |
実行使用メモリ | 61,508 KB |
最終ジャッジ日時 | 2024-10-07 02:49:52 |
合計ジャッジ時間 | 7,064 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 4 |
other | WA * 2 TLE * 1 -- * 23 |
ソースコード
package temp; import java.util.Scanner; public class Temp1{ public static void main(String[] args) { // 標準入力から読み込む際に、Scannerオブジェクトを使う。 Scanner sc = new Scanner(System.in); // int 1つ分を読み込む int a = sc.nextInt(); // int 1つ分を読み込む int b = sc.nextInt(); // int 1つ分を読み込む int s = sc.nextInt(); int num = 0; for(int i=s; i>0; i--) { if(Math.pow(a, b)%i==0) { num++; } } } }