Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdio>
- #include <cstdlib>
- #include <cstring>
- #include <cctype>
- #include <cmath>
- #include <algorithm>
- #include <bitset>
- #include <vector>
- #include <stack>
- #include <queue>
- #include <set>
- #include <map>
- /*
- Team: BalΓ£o Vermelho
- */
- int main() {
- int x,y;
- int dif, cont;
- while(scanf("%d %d", &x, &y) != EOF) {
- dif = y-x;
- cont = 1;
- do {
- cont++;
- } while (cont * dif < y);
- printf("%d\n", cont);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement