結果
問題 | No.51 やる気の問題 |
ユーザー |
![]() |
提出日時 | 2017-10-02 14:07:56 |
言語 | D (dmd 2.109.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 315 bytes |
コンパイル時間 | 579 ms |
コンパイル使用メモリ | 95,856 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 21:59:38 |
合計ジャッジ時間 | 2,066 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 RE * 6 |
ソースコード
import std.stdio, std.string, std.conv, std.math; void main(){ uint w = readln.strip.to!uint; uint d = readln.strip.to!uint; uint remainWork = w; uint dayWorks = 0; foreach(day; 0..d){ dayWorks = remainWork/(d-day)^^2; remainWork -= dayWorks; } dayWorks.writeln(); }