1374A1 [코드포스] 1374A : Required Remainder https://codeforces.com/problemset/problem/1374/A Problem - 1374A - Codeforces codeforces.com #include using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(NULL); int tc; cin >> tc; while (tc--) { ll x, y, n; cin >> x >> y >> n; if (((n / x) * x + y) 2020. 6. 30. 이전 1 다음