結果
| 問題 |
No.415 ぴょん
|
| ユーザー |
ikd
|
| 提出日時 | 2016-08-26 23:32:48 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 238 bytes |
| コンパイル時間 | 405 ms |
| コンパイル使用メモリ | 54,140 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-08 09:58:29 |
| 合計ジャッジ時間 | 3,643 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 WA * 18 TLE * 2 |
ソースコード
#include<iostream>
using namespace std;
#define int long long
signed main(){
int N, D;
cin>> N>> D;
int ans=0;
int num=N+(N%D);
for(int k=N; k<=num; k++){
ans+=(k/D);
}
cout<< ans-1<< endl;
return 0;
}
ikd