結果

問題 No.51 やる気の問題
ユーザー fukusei
提出日時 2017-05-23 00:29:30
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 270 bytes
コンパイル時間 1,974 ms
コンパイル使用メモリ 74,256 KB
実行使用メモリ 56,316 KB
最終ジャッジ日時 2024-09-19 10:28:35
合計ジャッジ時間 5,313 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14 RE * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class test{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int W = sc.nextInt();
		int D = sc.nextInt();
		
		if(D != 1){
			for(int i=D; i>1; i--){
				W -= W / (i * i);
				
			}
		}
		System.out.println(W);
	}
}
0