結果

問題 No.836 じょうよ
ユーザー d_sei
提出日時 2019-09-05 12:57:19
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 373 bytes
コンパイル時間 821 ms
コンパイル使用メモリ 81,348 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-06-11 06:55:52
合計ジャッジ時間 3,760 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 1 TLE * 1 -- * 34
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include <vector>
#include<cmath>
#include<iomanip>
#include<queue>
using namespace std;
typedef long long int lont;
int main() {
	int l, r, n;
	cin >> l >> r >> n;
	int cnt = 0;
	for (int ia = 0; ia < n; ia++) {
		for (int ib = l; ib <= r; ib++) {
			if (ib % n == ia) {
				cnt++;
			}
		}
		cout << cnt << endl;
		cnt = 0;
	}
}

	
0