-
Bio
#include<bits/stdc++.h> const int mod = 10000; int x,s,t; char c; int main() { scanf("%d",&t); while(scanf("%c",&c) && c != '\n') { scanf("%d",&x); if(c == '*') t = t * x % mod; else s = (s + t) % mod,t = x; } printf("%d\n",(s + t) % mod); return 0; }
-
Accepted Problems
-
Recent Activities
Problem Tags
- 一本通编程启蒙
- 39
- 四年级题目-双重循环练习题
- 4
- 一维数组
- 3
- 数学函数
- 3
- for循环
- 2
- sort排序
- 2
- 字符串
- 2
- 模拟
- 2
- NOIp 普及组
- 2
- 2014
- 1
- 2018
- 1
- while循环
- 1
- 循环嵌套
- 1
- 第8课 循环嵌套
- 1
- 202210月测试
- 1
- NOIP全国联赛普及组-2011年NOIP全国联赛普及组
- 1
- NOIP全国联赛普及组-2012年NOIP全国联赛普及组
- 1
- 搜索
- 1
- 枚举
- 1
- python
- 1