Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
319133 | 李南笙 | 【C1-11】交税 | C++ | Wrong Answer | 0 | 1 MS | 252 KB | 362 | 2025-04-25 19:46:34 |
#include<iostream> #include<iomanip> using namespace std; int main(){ double x,a; cin>>x; if(x<10000){ cout<<"0"; }else if(x>=10000&&x<30000){ a=3; cout<<fixed<<setprecision(0)<<x/a; }else if(x>=30000&&x<50000){ a=7; cout<<fixed<<setprecision(0)<<x/a; }else{ a=13; cout<<fixed<<setprecision(0)<<(x-1000)/a; } return 0; }