結果
問題 |
No.51 やる気の問題
|
ユーザー |
|
提出日時 | 2014-11-19 19:46:41 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 270 bytes |
コンパイル時間 | 3,743 ms |
コンパイル使用メモリ | 75,984 KB |
実行使用メモリ | 41,856 KB |
最終ジャッジ日時 | 2025-01-02 19:21:07 |
合計ジャッジ時間 | 6,616 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 RE * 6 |
ソースコード
import java.util.Scanner; public class Yukicoder51 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int d = sc.nextInt(); for (; d > 1; d--) w -= w / (d * d); System.out.println(w); } }