#include<bits/stdc++.h> using namespace std; int main() { long long ans=0,temp,num; char ch; cin>>temp; while(cin>>ch>>num){ if(ch=='+'){ ans=(ans+temp)%10000; temp=num; } else temp=(temp*num)%10000; } ans=(ans+temp)%10000; cout<<ans; }
微信直接扫码登录
使用经过邮箱注册的账号密码登录