結果

問題 No.51 やる気の問題
ユーザー fukuseifukusei
提出日時 2017-05-17 16:37:46
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 270 bytes
コンパイル時間 3,479 ms
コンパイル使用メモリ 75,040 KB
実行使用メモリ 57,664 KB
最終ジャッジ日時 2023-10-17 23:55:17
合計ジャッジ時間 7,531 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
57,524 KB
testcase_01 AC 132 ms
57,624 KB
testcase_02 AC 134 ms
57,496 KB
testcase_03 AC 133 ms
57,480 KB
testcase_04 AC 132 ms
57,192 KB
testcase_05 RE -
testcase_06 AC 133 ms
57,348 KB
testcase_07 AC 132 ms
57,476 KB
testcase_08 AC 132 ms
57,492 KB
testcase_09 RE -
testcase_10 AC 135 ms
57,492 KB
testcase_11 AC 136 ms
57,460 KB
testcase_12 AC 134 ms
57,516 KB
testcase_13 AC 134 ms
57,428 KB
testcase_14 AC 131 ms
57,432 KB
testcase_15 RE -
testcase_16 AC 131 ms
57,488 KB
testcase_17 AC 130 ms
57,496 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 AC 133 ms
57,432 KB
testcase_21 AC 132 ms
57,416 KB
testcase_22 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*; 

public class test {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = 0;
			
		for(int i=b; i>1; i--){
			a -= a / (i * i);
		}
		System.out.println(a);
	}
}
0