Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- void solve() {
- double x, y; cin >> x >> y;
- double pos;
- double ans = x+y;
- if(ans >=6) cout << "0" << endl;
- double c = 6 - ans;
- cout << c/6 << endl;
- }
- int main() {
- int t; cin >> t;
- while(t--) {
- solve();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment