結果
問題 |
No.51 やる気の問題
|
ユーザー |
![]() |
提出日時 | 2019-06-16 22:52:04 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 475 bytes |
コンパイル時間 | 771 ms |
コンパイル使用メモリ | 83,072 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-24 22:09:49 |
合計ジャッジ時間 | 1,674 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <iostream> #include <set> #include <map> #include <vector> #include <algorithm> #include <iomanip> #include <climits> #include <numeric> #include <cmath> #include <queue> #include <sstream> #include <string.h> #include <bitset> #include <stack> using namespace std; typedef long long ll; int main() { ll W, D; cin >> W >> D; ll ans = 0; while(D) { ll work = W / (D * D); ans = work; W -= work; D--; } cout << ans << endl; return 0; }