14 lines
254 B
C++
14 lines
254 B
C++
#include<bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
double v = 7, s, x, l = 0;
|
|
cin >> s >> x;
|
|
while (l < s - x) {
|
|
l += v;
|
|
v *= 0.98;
|
|
}
|
|
if (v * 0.98 <= s + x - l)cout << 'y';
|
|
else cout << 'n';
|
|
} |