- 博客(3)
- 收藏
- 关注
转载 UVaOJ1225 Digit Counting AC代码示例
这道题目我采用暴力的方法,通过设一个极为庞大的数组,计算每一层的结果。 经过计算后,需要的结果只需从数组中提取即可。 示例代码如下: 1 #include<iostream> 2 #include<string.h> 3 #include<math.h> 4 using namespace std; 5 6 int s...
2017-09-01 21:03:00 105
转载 UVaOj1586 Molar Mass AC代码示例
这道题首先设定一个二维数组,第一层是字符串,第二层则用于表示对应字符。如果是字母,则为0,如果是数字,则会根据数字出现的次数,依次加一。 之后根据这个二位数组就可以很容易的计算出所要的结果。 示例代码如下: 1 #include<stdio.h> 2 #include<string.h> 3 #include<ctype.h> ...
2017-09-01 20:58:00 108
转载 UVaOJ 1585 Score AC代码示例
1 #include<stdio.h> 2 #include<string.h> 3 #define maxn 90 4 char s[2][maxn]; 5 int main() 6 { 7 int T=0; 8 scanf("%d",&T); 9 10 while(T--){ ...
2017-09-01 15:20:00 90
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人