| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 42096 | 董承诺 | 小旗手 | C++ | Accepted | 100 | 0 MS | 256 KB | 286 | 2022-06-23 13:38:28 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; char c[1005],d; cin>>a>>d>>b; cin>>c; for(int i=0;i<strlen(c);++i){ if(c[i]=='a')a=(a*b)%1000; if(c[i]=='b')a=(a+b)%1000; if(c[i]=='c')a=abs(a-b); if(c[i]=='d')a=a/b; } cout<<a; return 0; }