3 条题解

  • 0
    @ 2024-5-5 11:53:56

    #include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c=='y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; } #include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%5000) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; char c; cin>>n>>c; if(c'y') s+=5; if(n<=1000){ s+=8; }else{ if((n-1000)%500==0) s+=8+((n-1000)/500)*4; else s+=8+((n-1000)/500)*4+4; } cout<<s; return 0; }

    信息

    ID
    622
    时间
    1000ms
    内存
    256MiB
    难度
    6
    标签
    递交数
    112
    已通过
    36
    上传者