結果

問題 No.847 Divisors of Power
コンテスト
ユーザー Taka
提出日時 2019-07-26 11:14:39
言語 Java
(openjdk 26.0.2.1 + ACL)
コンパイル:
javac -J-Duser.language=en -encoding UTF8 -cp /opt/aclib/ac_library.jar _filename_
実行:
java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true -cp .:/opt/aclib/ac_library.jar _class_
結果
WA  
実行時間 -
コード長 589 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,482 ms
コンパイル使用メモリ 85,460 KB
実行使用メモリ 44,448 KB
最終ジャッジ日時 2026-09-11 09:32:50
合計ジャッジ時間 8,662 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 4
other WA * 2 TLE * 1 -- * 23
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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++;
        	}
        }
    }
}
0