結果
問題 |
No.51 やる気の問題
|
ユーザー |
|
提出日時 | 2019-07-29 12:23:15 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 201 bytes |
コンパイル時間 | 2,072 ms |
コンパイル使用メモリ | 191,636 KB |
最終ジャッジ日時 | 2025-01-07 09:55:56 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 RE * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int n, d; cin >> n >> d; for (int i = d; i > 1; i--) n -= n / (i*i); cout << n << endl; return 0; }