'commit'
This commit is contained in:
14
LuoGu/RuMen/P1426.cpp
Normal file
14
LuoGu/RuMen/P1426.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#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';
|
||||
}
|
||||
Reference in New Issue
Block a user