03 2018 档案

摘要:玉 図のように二股に分かれている容器があります。1 から 10 までの番号が付けられた10 個の玉を容器の開口部 A から落とし、左の筒 B か右の筒 C に玉を入れます。板 D は支点 E を中心に左右に回転できるので、板 D を動かすことで筒 B と筒 C のどちらに入れるか決めることができます 阅读全文
posted @ 2018-03-30 21:21 Veritas_des_Liberty 阅读(201) 评论(0) 推荐(0)
摘要:Property Distribution タナカ氏が HW アールの果樹園を残して亡くなりました。果樹園は東西南北方向に H×W の区画に分けられ、区画ごとにリンゴ、カキ、ミカンが植えられています。タナカ氏はこんな遺言を残していました。 果樹園は区画単位でできるだけ多くの血縁者に分けること。ただし 阅读全文
posted @ 2018-03-29 22:21 Veritas_des_Liberty 阅读(144) 评论(0) 推荐(0)
摘要:Red and Black Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 40685 Accepted: 22079 Description There is a rectangular room, covered with s 阅读全文
posted @ 2018-03-29 21:44 Veritas_des_Liberty 阅读(337) 评论(0) 推荐(0)
摘要:Math.ceil() The Math.ceil() function returns the smallest integer greater than or equal to a given number. console.log(Math.ceil(.95)); // expected ou 阅读全文
posted @ 2018-03-29 20:40 Veritas_des_Liberty 阅读(322) 评论(0) 推荐(0)
摘要:string.prototype.trim() The trim() method removes whitespace from both ends of a string. Whitespace in this context is all the whitespace characters ( 阅读全文
posted @ 2018-03-29 19:43 Veritas_des_Liberty 阅读(429) 评论(0) 推荐(0)
摘要:The map of Berland is a rectangle of the size n × m, which consists of cells of size 1 × 1. Each cell is either land or water. The map is surrounded b 阅读全文
posted @ 2018-03-28 22:04 Veritas_des_Liberty 阅读(220) 评论(0) 推荐(0)
摘要:For each list of words, output a line with each word reversed without changing the order of the words. This problem contains multiple test cases! The 阅读全文
posted @ 2018-03-28 21:33 Veritas_des_Liberty 阅读(177) 评论(0) 推荐(0)
摘要:Prime Number Definition An integer greater than one is called a prime number if its only positive divisors (factors) are one and itself. For instance, 阅读全文
posted @ 2018-03-28 21:03 Veritas_des_Liberty 阅读(461) 评论(0) 推荐(0)
摘要:People stopped moving discs from peg to peg after they know the number of steps needed to complete the entire task. But on the other hand, they didn't 阅读全文
posted @ 2018-03-27 19:32 Veritas_des_Liberty 阅读(601) 评论(0) 推荐(0)
摘要:This database contains an incomplete list of box office hits and their release year. In this challenge, you're going to get the results back out of th 阅读全文
posted @ 2018-03-27 16:42 Veritas_des_Liberty 阅读(359) 评论(0) 推荐(0)
摘要:I - Red and Black Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Practice HDU 1312 Description There is a rectangu 阅读全文
posted @ 2018-03-24 11:31 Veritas_des_Liberty 阅读(357) 评论(0) 推荐(0)
摘要:Prime Number Definition An integer greater than one is called a prime number if its only positive divisors (factors) are one and itself. For instance, 阅读全文
posted @ 2018-03-20 22:16 Veritas_des_Liberty 阅读(213) 评论(0) 推荐(0)
摘要:For each list of words, output a line with each word reversed without changing the order of the words. This problem contains multiple test cases! The 阅读全文
posted @ 2018-03-20 22:00 Veritas_des_Liberty 阅读(208) 评论(0) 推荐(0)
摘要:strategy: a plan of action or policy designed to achieve a major or overall aim. 阅读全文
posted @ 2018-03-20 16:04 Veritas_des_Liberty 阅读(288) 评论(0) 推荐(0)
摘要:The following screenshot of a webpage includes an image that has been styled and resized. The following screenshot of a webpage includes an image that 阅读全文
posted @ 2018-03-20 15:51 Veritas_des_Liberty 阅读(255) 评论(0) 推荐(0)
摘要:Every year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. The exciteme 阅读全文
posted @ 2018-03-17 12:56 Veritas_des_Liberty 阅读(311) 评论(0) 推荐(0)
摘要:css grouping element <div> <div> The HTML Content Division element (<div>) is the generic container for flow content. It has no effect on the content 阅读全文
posted @ 2018-03-16 19:16 Veritas_des_Liberty 阅读(344) 评论(0) 推荐(0)
摘要:The annual Games in frogs' kingdom started again. The most famous game is the Ironfrog Triathlon. One test in the Ironfrog Triathlon is jumping. This 阅读全文
posted @ 2018-03-15 16:51 Veritas_des_Liberty 阅读(352) 评论(1) 推荐(0)
摘要:You task is to find minimal natural number N, so that N! contains exactly Q zeroes on the trail in decimal notation. As you know N! = 1*2*...*N. For e 阅读全文
posted @ 2018-03-14 21:18 Veritas_des_Liberty 阅读(306) 评论(0) 推荐(0)
摘要:My birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F 阅读全文
posted @ 2018-03-14 20:45 Veritas_des_Liberty 阅读(354) 评论(0) 推荐(0)
摘要:Problem Statement Dolphin resides in two-dimensional Cartesian plane, with the positive x-axis pointing right and the positive y-axis pointing up.Curr 阅读全文
posted @ 2018-03-13 20:05 Veritas_des_Liberty 阅读(376) 评论(0) 推荐(0)
摘要:Problem Statement Two foxes Jiro and Saburo are playing a game called 1D Reversi. This game is played on a board, using black and white stones. On the 阅读全文
posted @ 2018-03-13 19:00 Veritas_des_Liberty 阅读(285) 评论(0) 推荐(0)
摘要:Problem Statement You are given an integer N. Find the number of the positive divisors of N!, modulo 109+7. Constraints 1≤N≤103 Input The input is giv 阅读全文
posted @ 2018-03-12 21:58 Veritas_des_Liberty 阅读(245) 评论(0) 推荐(0)
摘要:大家都知道,快速排序是不稳定的排序方法。 如果对于数组中出现的任意a[i],a[j](i<j),其中a[i]==a[j],在进行排序以后a[i]一定出现在a[j]之前,则认为该排序是稳定的。 某高校招生办得到一份成绩列表,上面记录了考生名字和考生成绩。并且对其使用了某排序算法按成绩进行递减排序。现在 阅读全文
posted @ 2018-03-10 12:08 Veritas_des_Liberty 阅读(504) 评论(0) 推荐(0)
摘要:Excel可以对一组纪录按任意指定列排序。现请你编写程序实现类似功能。 Input测试输入包含若干测试用例。每个测试用例的第1行包含两个整数 N (<=100000) 和 C,其中 N 是纪录的条数,C 是指定排序的列号。以下有 N 行,每行包含一条学生纪录。每条学生纪录由学号(6位数字,同组测试中 阅读全文
posted @ 2018-03-10 11:15 Veritas_des_Liberty 阅读(424) 评论(0) 推荐(0)
摘要:Given two integers, a and b, you should check whether a is divisible by b or not. We know that an integer a is divisible by an integer b if and only i 阅读全文
posted @ 2018-03-09 19:11 Veritas_des_Liberty 阅读(301) 评论(0) 推荐(0)
摘要:A range is given, the begin and the end are both integers. You should sum the cube of all the integers in the range. InputThe first line of the input 阅读全文
posted @ 2018-03-08 15:19 Veritas_des_Liberty 阅读(154) 评论(0) 推荐(0)
摘要:小明对数的研究比较热爱,一谈到数,脑子里就涌现出好多数的问题,今天,小明想考考你对素数的认识。 问题是这样的:一个十进制数,如果是素数,而且它的各位数字和也是素数,则称之为“美素数”,如29,本身是素数,而且2+9 = 11也是素数,所以它是美素数。 给定一个区间,你能计算出这个区间内有多少个美素数 阅读全文
posted @ 2018-03-08 14:57 Veritas_des_Liberty 阅读(223) 评论(0) 推荐(0)
摘要:Today, Wet Shark is given n bishops on a 1000 by 1000 grid. Both rows and columns of the grid are numbered from 1 to 1000. Rows are numbered from top 阅读全文
posted @ 2018-03-07 21:53 Veritas_des_Liberty 阅读(192) 评论(0) 推荐(0)
摘要:Problem Description 把一个偶数拆成两个不同素数的和,有几种拆法呢? Input 输入包含一些正的偶数,其值不会超过10000,个数不会超过500,若遇0,则结束。 Output 对应每个偶数,输出其拆成不同素数的个数,每个结果占一行。 Sample Input 30 26 0 3 阅读全文
posted @ 2018-03-05 21:51 Veritas_des_Liberty 阅读(279) 评论(0) 推荐(0)
摘要:问题描述 小张是软件项目经理,他带领3个开发组。工期紧,今天都在加班呢。为鼓舞士气,小张打算给每个组发一袋核桃(据传言能补脑)。他的要求是: 1. 各组的核桃数量必须相同 2. 各组内必须能平分核桃(当然是不能打碎的) 3. 尽量提供满足1,2条件的最小数量(节约闹革命嘛) 小张是软件项目经理,他带 阅读全文
posted @ 2018-03-05 20:29 Veritas_des_Liberty 阅读(209) 评论(0) 推荐(0)
摘要:有三个正整数a,b,c(0<a,b,c<10^6),其中c不等于b。若a和c的最大公约数为b,现已知a和b,求满足条件的最小的c。 Input第一行输入一个n,表示有n组测试数据,接下来的n行,每行输入两个正整数a,b。 Output输出对应的c,每组测试数据占一行。 Sample Input Sa 阅读全文
posted @ 2018-03-05 20:06 Veritas_des_Liberty 阅读(200) 评论(0) 推荐(0)
摘要:You are given a string s consisting of lowercase Latin letters. Character c is called k-dominant iff each substring of s with length at least k contai 阅读全文
posted @ 2018-03-01 00:15 Veritas_des_Liberty 阅读(354) 评论(0) 推荐(0)