結果
問題 |
No.51 やる気の問題
|
ユーザー |
![]() |
提出日時 | 2016-05-14 13:51:41 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 420 bytes |
コンパイル時間 | 2,666 ms |
コンパイル使用メモリ | 74,228 KB |
実行使用メモリ | 54,528 KB |
最終ジャッジ日時 | 2024-10-06 02:29:23 |
合計ジャッジ時間 | 6,220 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 RE * 6 |
ソースコード
import java.util.Scanner; public class Main{ static long mod=(long)10E9; public static void main(String[] args){ Scanner sc=new Scanner(System.in); while(sc.hasNext()){ int w=sc.nextInt(); int d=sc.nextInt(); while(true){ int work=w/(d*d); if(w-work<=0){ System.out.println(work); break;} w-=work; d--; } } } }