- 博客(21)
- 收藏
- 关注
原创 Virgo's Trial第D题
A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = <x1, x2, …, xm> another sequence Z = <z1, z2, …, zk> is a subseque...
2019-01-22 18:25:17
179
原创 Gemini's Trial 第F题
Nowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don’t know that Computer College had ever been split into Computer College and Software College in 2002. Th...
2019-01-22 12:12:55
197
原创 Leo's Trial第 I 题
要求(A/B)%9973,但由于A很大,我们只给出n(n=A%9973)(我们给定的A必能被B整除,且gcd(B,9973) = 1)。 Input 数据的第一行是一个T,表示有T组数据。 每组数据有两个数n(0 <= n < 9973)和B(1 <= B <= 10^9)。 Output 对应每组数据输出(A/B)%9973。 Sample Input 2 1000 53...
2019-01-22 11:52:20
252
原创 杨辉三角
还记得中学时候学过的杨辉三角吗?具体的定义这里不再描述,你可以参考以下的图形: 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 Input 输入数据包含多个测试实例,每个测试实例的输入只包含一个正整数n(1<=n<=30),表示将要输出的杨辉三角的层数。 Output 对应于每一个输入,请输出相应层数的杨辉三角,每一层的整数之间用一个空格隔开,每...
2018-12-15 21:31:34
369
原创 杭电2000
Problem Description 输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个字符。 Input 输入数据有多组,每组占一行,有三个字符组成,之间无空格。 Output 对于每组输入数据,输出一行,字符中间用一个空格分开。 Sample Input qwe asd zxc Sample Output e q w a d s c x z #include <iostre...
2018-12-12 07:55:41
465
原创 杭电1096
Problem Description Your task is to calculate the sum of some integers. Input Input contains an integer N in the first line, and then N lines follow. Each line starts with a integer M, and then M inte...
2018-12-11 22:49:25
257
原创 杭电1095
Problem Description Your task is to Calculate a + b. Input The input will consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line. Output For each pair of...
2018-12-11 22:23:22
187
原创 杭电1094
Problem Description Your task is to calculate the sum of some integers. Input Input contains multiple test cases, and one case one line. Each case starts with an integer N, and then N integers follow ...
2018-12-11 21:42:19
156
原创 杭电1903
Problem Description Your task is to calculate the sum of some integers. Input Input contains an integer N in the first line, and then N lines follow. Each line starts with a integer M, and then M inte...
2018-12-11 20:50:32
144
原创 杭电1092
Problem Description Your task is to Calculate the sum of some integers. Input Input contains multiple test cases. Each test case contains a integer N, and then N integers follow in the same line. A te...
2018-12-11 20:16:57
344
原创 杭电1091
Problem Description Your task is to Calculate a + b. Input Input contains multiple test cases. Each test case contains a pair of integers a and b, one pair of integers per line. A test case containing...
2018-12-11 19:58:13
332
原创 杭电1090
Problem Description Your task is to Calculate a + b. Input Input contains an integer N in the first line, and then N lines follow. Each line consists of a pair of integers a and b, separated by a spac...
2018-12-11 19:49:27
167
原创 杭电1089
Problem Description Your task is to Calculate a + b. Too easy?! Of course! I specially designed the problem for acm beginners. You must have found that some problems have the same titles with this one...
2018-12-11 19:39:59
156
原创 杭电1001
问题描述 嗨,欢迎来到HDOJ(杭州一袭大学在线判断)。 在这个问题上,你的任务是计算总和(n)= 1 + 2 + 3 +… + n。 输入 输入将包含一系列整数n,每行一个整数。 输出 每种情况下,输出总和(n)在一行,其次是一个空行。 你可能会认为结果将是在32位带符号整数。 样例输入 1 100 样例输出 1 1 100 5050 #include &lt;iostream&gt; us...
2018-12-11 19:29:29
220
原创 第一周训练A题
Text Reverse Time limit1000 msMemory limit65536 kBSourceCodeforces Beta Round #4 (Div. 2 Only)Tagsbrute force math *1200EditorialAnnouncement Tutorial #1 Tutorial #2 Tutorial #3 A-problem A One hot su...
2018-12-09 12:09:10
284
原创 ACM第三题
Text Reverse Time limit2000 msMemory limit262144 kBSourceCodeforces Round #163 (Div. 2)Tagsimplementation *800EditorialAnnouncement Tutorial Problem Description There are n stones on the table in a ro...
2018-12-08 10:33:27
196
原创 ACM第六题
String Task Time limit1000 msMemory limit32768 kBOSWindowsSource C语言程序设计练习(一) Problem Description 输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个字符。 Input 输入数据有多组,每组占一行,有三个字符组成,之间无空格。 Output 对于每组输入数据,输出一行,字符中间用一个空格分开...
2018-12-07 19:34:21
141
原创 ACM第八题
A + B Problem Too This problem is also a A + B problem,but it has a little difference,you should determine does (a+b) could be divided with 86.For example ,if (A+B)=98,you should output no for result....
2018-12-07 18:05:46
197
原创 ACM第四题
A + B Problem Calculate A + B. Input Each line will contain two integers A and B. Process to end of file. Output For each case, output A + B in one line. #include “pch.h” #include using namespace std...
2018-12-07 17:12:38
212
原创 ACM第二题
George and Accommodation George has recently entered the BSUCP (Berland State University for Cool Programmers). George has a friend Alex who has also entered the university. Now they are moving into a...
2018-12-07 17:02:11
246
原创 ACM第一题
String Task Petya started to attend programming lessons. On the first lesson his task was to write a simple program. The program was supposed to do the following: in the given string, consisting if up...
2018-12-07 16:40:38
323
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅