Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
319132 | 李南笙 | 【C1-11】交税 | C++ | Compile Error | 0 | 0 MS | 0 KB | 362 | 2025-04-25 19:46:02 |
#include<iostream> #include<jomanip> 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; }