結果
| 問題 |
No.51 やる気の問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-04-10 11:40:12 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 256 bytes |
| コンパイル時間 | 468 ms |
| コンパイル使用メモリ | 67,284 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-18 05:40:09 |
| 合計ジャッジ時間 | 1,870 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 RE * 6 |
ソースコード
#include <iostream>
#include <cmath>
int main() {
int w;
int d;
std::cin >> w >> d;
for (int i = 0; i < d; i++) {
int t = w /((d - i) * (d - i));
w -= t;
if (!w) {
std::cout << t << std::endl;
break;
}
}
return 0;
}