摘要: Cypher Game n*m的矩阵只能向右读数,相当于一层又一层的 嵌套,然后根据读取的顺序,输入两行等长的数字1-n*m,第一行和和第二行是一一对应的,按照读取的顺序输出第二行的解密密码。 C++ #include<bits/stdc++.h> using namespace std; cons 阅读全文
posted @ 2019-04-02 21:27 besti_kuroko 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Here is a simple game. In this game, there are several piles of matches and two players. The two player play in turn. In each turn, one can choose a p 阅读全文
posted @ 2019-01-21 18:35 besti_kuroko 阅读(216) 评论(0) 推荐(0) 编辑
摘要: A factory produces products packed in square packets of the same height h and of the sizes 1*1, 2*2, 3*3, 4*4, 5*5, 6*6. These products are always del 阅读全文
posted @ 2019-01-21 18:34 besti_kuroko 阅读(913) 评论(0) 推荐(0) 编辑
摘要: 题目描述 输入描述: 输出描述: 输入例子: 输出例子: #include<bits/stdc++.h> using namespace std; struct student { char name[11]; int grade; char subject[11]; }; student res[ 阅读全文
posted @ 2019-01-18 21:57 besti_kuroko 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 输入描述: 输出描述: 输入例子: 输出例子: #include <iostream> #include <string> #include <vector> using namespace std; string num[10] = { "ling","yi", "er", "san", "si" 阅读全文
posted @ 2019-01-18 21:49 besti_kuroko 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Given N rational numbers in the form "numerator/denominator", you are supposed to calculate their sum. 输入描述: Each input file contains one test ca 阅读全文
posted @ 2019-01-14 19:58 besti_kuroko 阅读(184) 评论(0) 推荐(0) 编辑
摘要: J How Much Memory Your Code Is Using? 字符串模拟 阅读全文
posted @ 2018-11-27 23:10 besti_kuroko 阅读(601) 评论(0) 推荐(0) 编辑
摘要: A. The King's Race A. The King's Race On a chessboard with a width of nn and a height of nn, rows are numbered from bottom to top from 11 to nn, colum 阅读全文
posted @ 2018-11-14 21:16 besti_kuroko 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 一个等差数列是一个能表示成 a, a+b, a+2b,..., a+nb (n=0,1,2,3,...)a,a+b,a+2b,...,a+nb(n=0,1,2,3,...)的数列。 在这个问题中 aa 是一个非负的整数,bb 是正整数。写一个程序来找出在双平方数集合(双平方数集合是所有能表示成 p^ 阅读全文
posted @ 2018-10-19 21:33 besti_kuroko 阅读(212) 评论(0) 推荐(0) 编辑
摘要: I-Tourists LCA裸题 阅读全文
posted @ 2018-10-02 17:52 besti_kuroko 阅读(135) 评论(0) 推荐(0) 编辑