結果
問題 | No.51 やる気の問題 |
ユーザー |
|
提出日時 | 2016-02-10 06:25:51 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 5,000 ms |
コード長 | 278 bytes |
コンパイル時間 | 590 ms |
コンパイル使用メモリ | 54,612 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-21 22:04:42 |
合計ジャッジ時間 | 1,406 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <cstdint> #include <cstdlib> #include <iostream> int main() { std::cin.tie(0); std::ios::sync_with_stdio(false); std::int64_t w, d; std::cin >> w >> d; for (; d > 1; d--) { w -= w / (d * d); } std::cout << w << std::endl; return EXIT_SUCCESS; }