よじろめ覚書

私の理解度重視のソースコードです。

2019-08-04から1日間の記事一覧

ABC048B - Between a and b ...

ABC

問題:B - Between a and b ... #include <iostream> using namespace std; int main(void) { long long a, b, x, ans; cin.tie(0); ios::sync_with_stdio(false); cin >> a >> b >> x; if (a == 0) { ans = b / x + 1; } else { ans = b / x - (a - 1) / x; } cout <<</iostream>…