結果
| 問題 |
No.51 やる気の問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-02-10 06:23:46 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 286 bytes |
| コンパイル時間 | 439 ms |
| コンパイル使用メモリ | 54,088 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-21 22:04:35 |
| 合計ジャッジ時間 | 1,938 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 RE * 6 |
ソースコード
// http://yukicoder.me/problems/100
#include <cstdlib>
#include <iostream>
int
main()
{
std::cin.tie(0);
std::ios::sync_with_stdio(false);
int w, d;
std::cin >> w >> d;
for (; d > 1; d--) {
w -= w / (d * d);
}
std::cout << w << std::endl;
return EXIT_SUCCESS;
}