結果

問題 No.51 やる気の問題
ユーザー ちよちゃん
提出日時 2016-05-30 17:12:48
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 331 bytes
コンパイル時間 3,491 ms
コンパイル使用メモリ 74,616 KB
実行使用メモリ 54,528 KB
最終ジャッジ日時 2024-10-07 18:45:58
合計ジャッジ時間 6,729 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14 RE * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

public class Yuki51 {
	
	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int w = scan.nextInt();
		int d = scan.nextInt();
		scan.close();
		for(int i = d; i>0; i--){
			if(i == 1) {
				System.out.println(w);					
			}
			w -= w/(i*i);
		}
	}
}
0