| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 180676 | 林汐 | 表达式求值 | C++ | Accepted | 100 | 22 MS | 648 KB | 338 | 2024-08-21 17:20:02 |
#include<bits/stdc++.h> using namespace std; long long a,b[100001],ss,l,s1; char s; int main(){ cin>>a; b[++ss]=a%10000; while(~scanf(" %c%lld",&s,&a)){ if(s=='*'){ l=(b[ss]*(a%10000))%10000; b[ss]=l; } else b[++ss]=a%10000; } for(int i=1;i<=ss;i++) s1=(s1+b[i])%10000; cout<<s1; return 0; }