| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 48479 | 石利伟 | 小旗手 | C++ | Wrong Answer | 0 | 0 MS | 260 KB | 288 | 2022-07-15 21:27:17 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,k; char wy; string cz; cin>>n>>wy>>k>>cz; for(int i=0;i<cz.size();i++){ if(cz[i]=='a') n=n*k; else if(cz[i]=='b') n+=k; else if(cz[i]=='c') n-=k; else if(cz[i]=='d') n/=k; } cout<<n; return 0; }