#include using namespace std;

int main() { int M, S, T; cin >> M >> S >> T;

int time = 0;
int distance = 0;
int magic = M;

while (time < T) {
    if (magic >= 10) {
        distance += 60;
        magic -= 10;
    } else {
        distance += 17;
    }
    time++;

    if (distance >= S) {
        cout << "Yes" << endl;
        cout << time << endl;
        return 0;
    }

    if (time % 4 == 0) {
        magic += 4;
    }
}

cout << "No" << endl;
cout << S - distance << endl;

return 0;
C++且不使用vector头文件完成:恶魔猎手尤迪安野心勃勃他背叛了暗夜精灵率领深藏在海底的娜迦族企图叛变。守望者在与尤迪安的交锋中遭遇了围杀被困在一个荒芜的大岛上。为了杀死守望者尤迪安开始对这个荒岛施咒这座岛很快就会沉下去。到那时岛上的所有人都会遇难。守望者的跑步速度为 17ms以这样的速度是无法逃离荒岛的。庆幸的是守望者拥有闪烁法术可在 1s 内移动 60m不 过每次使用闪烁法术都会消耗魔法值

原文地址: http://www.cveoy.top/t/topic/h9Zj 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录