結果
問題 | No.51 やる気の問題 |
ユーザー |
|
提出日時 | 2022-01-11 15:36:05 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 233 bytes |
コンパイル時間 | 837 ms |
コンパイル使用メモリ | 77,568 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-14 11:38:50 |
合計ジャッジ時間 | 2,508 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 RE * 6 |
ソースコード
#include <iostream> using namespace std; signed main(){ int w , d; cin >> w >> d; int rest = w; for( int i = d ; i >= 2 ; --i){ rest = rest - static_cast<int>(rest / ( i * i )); } cout << rest << endl; }