C. Kuro and Walking Route time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Kuro and Wa ...
分类:
其他好文 时间:
2018-05-20 20:10:11
阅读次数:
164
Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. Example: Input: 3 Output: [ [ 1, 2, 3 ], [ 8, ...
分类:
其他好文 时间:
2018-05-20 10:49:51
阅读次数:
148
1.I/O流1.1 基本概念 I/O就是Input/Output的简写,也就是输入/输出的含义。 I/O流主要指像流水一样源源不断进行读写的状态/过程。 1.2 基本分类 以数据读写的单位不同分为:字节流 和 字符流。 其中字节流主要指以字节为基本单位进行读写的流,可以用于读写任何类型的文件。 其中 ...
分类:
其他好文 时间:
2018-05-19 01:16:29
阅读次数:
175
Problem Description: Input: 输入有多组数据,输入一个整数n(1 <= n <= 10^6),代表这个无聊者序列的个数。 Input: Output: 输出一个数,代表子序列的个数为多少,该数需要mod(1000000007) Output: Sample Input: 3 ...
分类:
其他好文 时间:
2018-05-19 01:16:13
阅读次数:
181
Problem Description: Input: 输入包含多个测试用例。 每行包含两个整数n,m(0 <n,m <= 2000)。 当n = 0和m = 0时输入终。 Input: Output: 如果kiki赢,输出kiki;如果bibi赢,输出bibi。 Output: Sample In ...
分类:
其他好文 时间:
2018-05-19 00:45:36
阅读次数:
150
Problem Description: Input: 输入一个N,N<30 Input: Output: 对于每组数据,输出移动过程中所有会产生的系列总数 Output: Sample Input: 1 3 Sample Input: Sample Output: 3 27解题思路:这道题跟 杭电 ...
分类:
其他好文 时间:
2018-05-19 00:17:20
阅读次数:
184
1520: [POI2006]Szk-Schools Description Input Output 如果有可行解, 输出最小代价,否则输出NIE. Sample Input 5 1 1 2 3 1 1 5 1 3 2 5 5 4 1 5 10 3 3 3 1 Sample Output 9 HI ...
分类:
其他好文 时间:
2018-05-18 23:30:33
阅读次数:
209
Problem Description: Input: 输入包含多组数据,每组输入包含一个位正整数n,表示当前密码. Input: Output: 对于每组输入,如果小X能够在极限之前(包括10秒)上厕所,则输出“ok”(不包含引号),否则输出“gg”(不包含引号) Output: Sample I ...
分类:
其他好文 时间:
2018-05-18 14:01:09
阅读次数:
104
A. Finite or not? time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given several q ...
分类:
其他好文 时间:
2018-05-17 20:37:05
阅读次数:
335
Description 有一个球形空间产生器能够在 n 维空间中产生一个坚硬的球体。现在,你被困在了这个 n 维球体中,你只知道球面上 n+1 个点的坐标,你需要以最快的速度确定这个 n 维球体的球心坐标,以便于摧毁这个球形空间产生器。 Input & Output Input 第一行是一个整数 n ...
分类:
Web程序 时间:
2018-05-16 20:54:33
阅读次数:
262