摘要: 题目描述 JSZKC is going to spend his vacation! His vacation has N days. Each day, he can choose a T-shirt to wear. Obviously, he doesn’t want to wear a si 阅读全文
posted @ 2018-06-08 19:42 l..q 阅读(257) 评论(0) 推荐(0)
摘要: 一、基本程序框架 import java.util.Scanner;//明确导入——导入指定的类(从包 java.util中导入Scanner类) import java.util.*;//通配符导入——导入一个包(java.util)中的所有类 public class JavaStudy {// 阅读全文
posted @ 2018-06-05 21:36 l..q 阅读(199) 评论(0) 推荐(0)
摘要: 题目描述 You are given an integer N. Find the number of the positive divisors of N!, modulo 109+7.Constraints1≤N≤103 输入 The input is given from Standard I 阅读全文
posted @ 2018-05-31 22:24 l..q 阅读(293) 评论(0) 推荐(0)
摘要: Description You are given a sequence of n integers a1 , a2 , ... , an in non-decreasing order. In addition to that, you are given several queries cons 阅读全文
posted @ 2018-05-29 18:10 l..q 阅读(137) 评论(0) 推荐(0)
摘要: 题目描述 一个n*m的方格,初始时每个格子有一个整数权值。接下来每次有2种操作:改变一个格子的权值;求一个子矩阵中某种特定权值出现的个数。 输入 第一行有两个数n,m。接下来n行,每行m个数,第i+1行第j个数表示格子(i,j)的初始权值。接下来输入一个整数q。接下来q行,每行描述一个操作。操作1: 阅读全文
posted @ 2018-05-27 11:46 l..q 阅读(397) 评论(2) 推荐(0)
摘要: Mishka and Interesting sum time limit per test 3.5 seconds memory limit per test 256 megabytes input standard input output standard output Little Mish 阅读全文
posted @ 2018-05-26 12:27 l..q 阅读(239) 评论(0) 推荐(0)
摘要: 题目描述 There is a rectangle in the xy-plane, with its lower left corner at (0,0) and its upper right corner at (W,H). Each of its sides is parallel to t 阅读全文
posted @ 2018-05-25 16:56 l..q 阅读(485) 评论(0) 推荐(0)
摘要: Description In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping 阅读全文
posted @ 2018-05-25 16:01 l..q 阅读(204) 评论(0) 推荐(0)
摘要: Description Japan plans to welcome the ACM ICPC World Finals and a lot of roads must be built for the venue. Japan is tall island with N cities on the 阅读全文
posted @ 2018-05-25 15:43 l..q 阅读(224) 评论(0) 推荐(0)
摘要: Description In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping 阅读全文
posted @ 2018-05-23 21:01 l..q 阅读(136) 评论(0) 推荐(0)