結果
問題 |
No.51 やる気の問題
|
ユーザー |
|
提出日時 | 2015-06-03 18:24:34 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 355 bytes |
コンパイル時間 | 480 ms |
コンパイル使用メモリ | 61,964 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 13:55:16 |
合計ジャッジ時間 | 1,883 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 RE * 6 |
ソースコード
#include <iostream> #include <sstream> #include <vector> #include <cmath> using namespace std; # define M_PI 3.14159265358979323846 int main() { std::ios::sync_with_stdio(false); std::cin.tie(0); int w, d; cin >> w >> d; while(d > 1){ w -= (int)(w / (d * d)); --d; } cout << w << endl; return 0; }