結果
| 問題 |
No.51 やる気の問題
|
| コンテスト | |
| ユーザー |
srup٩(๑`н´๑)۶
|
| 提出日時 | 2016-08-05 16:38:15 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 246 bytes |
| コンパイル時間 | 859 ms |
| コンパイル使用メモリ | 54,924 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-07 00:14:39 |
| 合計ジャッジ時間 | 2,568 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 RE * 6 |
ソースコード
#include <iostream>
using namespace std;
int main(void){
int n; cin >> n;
long long m; cin >> m;
for (int i = m; i >= 1; --i){
long long now = n / (i * i);
// cout << now << endl;
if(i != 1) n -= now;
}
cout << n << endl;
return 0;
}
srup٩(๑`н´๑)۶