結果
問題 | No.51 やる気の問題 |
ユーザー |
![]() |
提出日時 | 2018-02-13 18:14:39 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 132 ms / 5,000 ms |
コード長 | 250 bytes |
コンパイル時間 | 2,093 ms |
コンパイル使用メモリ | 77,320 KB |
実行使用メモリ | 41,492 KB |
最終ジャッジ日時 | 2024-11-30 01:34:27 |
合計ジャッジ時間 | 5,922 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int w = sc.nextInt(); int d = sc.nextInt(); while (d > 1) { w -= w/d/d; d--; } System.out.println(w); } }