結果
問題 |
No.51 やる気の問題
|
ユーザー |
|
提出日時 | 2015-05-21 11:16:25 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 279 bytes |
コンパイル時間 | 2,793 ms |
コンパイル使用メモリ | 74,156 KB |
実行使用メモリ | 56,148 KB |
最終ジャッジ日時 | 2024-07-06 04:20:09 |
合計ジャッジ時間 | 6,117 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 RE * 6 |
ソースコード
import java.util.*; public class Work{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); int w,d,temp; w = sc.nextInt(); d = sc.nextInt(); for(int i = 0;i<d-1;i++){ temp = w/((d-i)*(d-i)); w = w - temp; } System.out.println(w); } }