- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 UVa 492 - Pig-Latin
题目:字符串转化,如果是辅音开头把单词的开头放到最后,然后后加上ay后缀即可。 分析:简单题。直接转化即可,记录每个单词的开始和jieshu
2013-11-03 17:40:33 2980 3
原创 UVa 541 - Error Correction
题目:在一个n x n的0和1组成的矩阵,问是否每行每列之和为偶数,如果不是是否通过改变一个元素值后成立。 分析:简单题。直接统计所有的行和列的偶数情况: 1.都是偶数则成立; 2.如果有1行和1列是奇数则改变交点的值即可; 3.其他情况,均为不可能转换。 注意:数组开大一点。 #include #inclu
2013-11-02 15:01:11 1293
原创 UVa 10062 - Tell me the frequencies!
题目:统计ASCII出现的次数,按升序输出,如果个数相同输出ASCII值大的。 分析:简单题。直接统计,排序输出即可。 注意:使用gets或者getline读入,空格也在统计范围内。 #include #include #include #include #include using namespace std; char str[1005]; int sum[129];
2013-11-01 16:56:03 3080
原创 UVa 713 - Adding Reversed Numbers
题目:计算两个数的翻转的和的翻转。 分析:简单题、大整数。利用数组模拟即可。 注意:清空数组。 #include #include #include using namespace std; char a[205],b[205]; int c[205]; int value( char c ) { if ( c >= '0' && c <= '9' ) return
2013-11-01 02:04:14 1127
SOFA: A Multi-Model Framework for Interactive Physical Simulation
2018-06-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人