有哪位能看一下代码?

//
// Created by fym on 2022/12/31.
//
#include <bits/stdc++.h>
using namespace std;
int main(){
    int a;
    char b;
    cin>>a>>b;
    bool urgent=false;
    if(b=='y'){
        urgent=true;
    }
    if(a<=1000){
        if(urgent){
            cout<<13;
        }else{
            cout<<8;
        }
    }else{
        float c;
        c=(a-1000)/500;
        if(c-(int)c!=0){
            c=(int)c+1;
        }
        if(urgent){
            cout<<c*4+13;
        }else{
            cout<<c*4+8;
        }

    }
    return 0;
}

题目链接:
http://ybt.ssoier.cn:8088/problem_show.php?pid=1052

链接丢了