結果
問題 |
No.1809 Divide NCK
|
ユーザー |
|
提出日時 | 2022-01-18 22:55:52 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 315 bytes |
コンパイル時間 | 1,468 ms |
コンパイル使用メモリ | 166,572 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-23 13:36:12 |
合計ジャッジ時間 | 2,813 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 WA * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; #define all(A) A.begin(),A.end() using vll = vector<ll>; #define rep(i, n) for (long long i = 0; i < (long long)(n); i++) int main() { ll N,K,M,an=0; cin>>N>>K>>M; ll A=N-K; rep(i,70)an+=(N/=M)-(K/=M)-(A/=M); cout<<an<<endl; }