
九度OJ
flamingobaby
这个作者很懒,什么都没留下…
展开
-
九度OJ —— 1000
题目描述: 求整数a,b的和。 输入: 测试案例有多行,每行为a,b的值。 输出: 输出多行,对应a+b的结果。 样例输入: 1 2 4 5 6 9 样例输出: 3 9 15#include <iostream>using namespace std;int main(){ int a,b;原创 2017-08-29 21:09:20 · 284 阅读 · 0 评论 -
九度OJ —— 1001
题目描述: This time, you are supposed to find A+B where A and B are two matrices, and then count the number of zero rows and columns. 输入: The input consists of several test cases, each sta原创 2017-08-29 21:11:56 · 295 阅读 · 0 评论 -
九度OJ —— 1002
题目描述: Grading hundreds of thousands of Graduate Entrance Exams is a hard work. It is even harder to design a process to make the results as fair as possible. One way is to assign each exam pro原创 2017-08-30 18:53:32 · 317 阅读 · 0 评论 -
九度OJ —— 1003
题目描述: 给定两个整数A和B,其表示形式是:从个位开始,每三位数用逗号”,”隔开。 现在请计算A+B的结果,并以正常形式输出。输入: 输入包含多组数据数据,每组数据占一行,由两个整数A和B组成(-10^9 < A,B < 10^9)。输出: 请计算A+B的结果,并以正常形式输出,每组数据占一行。样例输入:-234,567,890 123,456,7891,原创 2017-08-31 19:59:06 · 338 阅读 · 0 评论 -
九度OJ —— 1004
题目描述: Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1={11, 12, 13, 14} is 12, and the median of S2={9, 10, 15, 16, 17} is原创 2017-09-01 15:37:20 · 282 阅读 · 0 评论 -
九度OJ —— 1005
题目描述: It is said that in 2011, there are about 100 graduate schools ready to proceed over 40,000 applications in Zhejiang Province. It would help a lot if you could write a program to automate the a原创 2017-09-02 10:54:46 · 326 阅读 · 0 评论 -
世界末日还有多远
Problem Description汉诺塔(又称河内塔)问题是源于印度一个古老传说的益智玩具。 大梵天创造世界的时候做了三根金刚石柱子,在一根柱子上从下往上按照大小顺序摞着64片黄金圆盘。大梵天命令婆罗门把圆盘从下面开始按大小顺序重新摆放在另一根柱子上(可以借助第三根柱子做缓冲)。并且规定,在小圆盘上不能放大圆盘,在三根柱子之间一次只能移动一个圆盘。 如图(图见QQ群)是现代“山寨”...原创 2018-03-14 19:55:17 · 509 阅读 · 0 评论 -
算式成立的数量
Problem Description___B___DEFA+—+-——— = 10___C___GHI(其中下划线只是为了对齐显示,如果显示有问题,可到qq上查看图形)这个算式中A~I代表1~9的数字,不同的字母代表不同的数字。比如:6+8/3+952/714 就是一种解法,5+3/1+972/486 是另一种解法。这个算式一共有多少种解法?注意:你提交应该是个整数,不要填写任何多余的内容或说明...原创 2018-03-05 19:58:26 · 283 阅读 · 0 评论