02c
unknown
c_cpp
3 years ago
241 B
9
Indexable
#include <iostream>
#include <cmath>
using namespace std;
int main() {
freopen("a.in", "r", stdin);
freopen("a.out", "w", stdout);
double k, n; cin >> k >> n;
cout << ceil(n / k) << " " << n - ((ceil(n / k) - 1) * k);
return 0;
}Editor is loading...