- 博客(11)
- 收藏
- 关注
原创 UVa10935 - Throwing cards away I
1、队列的简单使用。 //#define LOCAL #include #include #include #include #include using namespace std; queue s,s0; int main(){ #ifdef LOCAL freopen("in.txt", "r", stdin); freopen("out.txt", "w", stdout); #e
2014-08-23 15:32:01 455
原创 Uva1593 - Alignment of Code(getline、istringstream用法)
1、学会getline的一种用法。 2、学会
2014-08-21 09:23:58 903
原创 Uva1589 - Xiangqi
//#define LOCAL #include #include #include #include using namespace std; int N, bgx, bgy, gx, gy; char map[15][15]; char map1[15][15]; struct C{ char ch; int x, y; }C1,C2; struct H { char ch; int
2014-08-10 10:32:03 966
原创 Uva1339 - Ancient Cipher
#include #include #include #include char s[105], s2[105]; int t[26], t2[26]; void mycount(int t[], char s[], char alp[]){ //标记是s[]中各字母出现次数 for (int i = 0; i <strlen(s); i++){ for (int
2014-08-02 21:16:41 567
原创 Uva202 - Repeating Decimals
#include #include int fraction[4000]; int mod[4000]; int main(){ int a, b; int q,p,len; int d = 0; while (scanf("%d%d", &a, &b) != EOF){ mod[0] = a; fraction[0] = a / b; for (q = 1;; q++){
2014-08-02 16:20:41 1461
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人