結果
| 問題 |
No.51 やる気の問題
|
| コンテスト | |
| ユーザー |
maru
|
| 提出日時 | 2016-03-22 22:46:09 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 295 bytes |
| コンパイル時間 | 2,969 ms |
| コンパイル使用メモリ | 73,692 KB |
| 実行使用メモリ | 41,336 KB |
| 最終ジャッジ日時 | 2024-10-01 15:13:23 |
| 合計ジャッジ時間 | 6,363 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 RE * 6 |
ソースコード
import java.util.Scanner;
public class yukicoder_51 {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int w = stdIn.nextInt();
int d = stdIn.nextInt();
for (int i = d; i > 1; i--) {
w = w - (w / (i * i));
}
System.out.println(w);
}
}
maru