結果
| 問題 |
No.51 やる気の問題
|
| コンテスト | |
| ユーザー |
mits58
|
| 提出日時 | 2016-05-14 13:55:34 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 113 ms / 5,000 ms |
| コード長 | 423 bytes |
| コンパイル時間 | 1,854 ms |
| コンパイル使用メモリ | 74,028 KB |
| 実行使用メモリ | 41,412 KB |
| 最終ジャッジ日時 | 2024-10-06 02:31:16 |
| 合計ジャッジ時間 | 5,078 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
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()){
long w=sc.nextInt();
long d=sc.nextInt();
while(true){
long work=w/(d*d);
if(w-work<=0){ System.out.println(work); break;}
w-=work;
d--;
}
}
}
}
mits58