摘要:
Description 有一天TMK在做一个飞艇环游世界,突然他发现有一个气球匀速沿直线飘过,tmk想起了他飞艇上有一把弓,他打算拿弓去射气球,为了提高射击的准确性,他首先在飞艇上找到一个离气球最近的一个点,然后射击(即使气球在飞船的正上方),现在求某些时刻飞艇上的点和气球的距离最小是多少(这个最小 阅读全文
摘要:
" 题目链接 " Problem Description Given a two dimensional array of positive and negative integers, a sub rectangle is any contiguous sub array of size 1 x 阅读全文
摘要:
" 题目链接 " Problem Description Davy Jones has captured another ship and is smiling contently under the sun. Today is a good day for him. He will get mor 阅读全文
摘要:
本题的要求很简单,就是求N个数字的和。麻烦的是,这些数字是以有理数“分子/分母”的形式给出的,你输出的和也必须是有理数的形式。 输入格式: 输入第一行给出一个正整数N(<! more 输出格式: 输出上述数字和的最简形式 —— 即将结果写成“整数部分 分数部分”,其中分数部分写成“分子/分母”,要求 阅读全文
摘要:
" 题目链接 " Problem Description Given two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <! more Input The first line 阅读全文
摘要:
" 题目链接 " Problem Description Ignatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The labyrinth has an exit, 阅读全文
摘要:
" 题目链接 " Problem Description Kblack loves flags, so he has infinite flags in his pocket. One day, Kblack is given an chessboard and he decides to plan 阅读全文
摘要:
" 题目链接 " Problem DescriptionSuppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, eac 阅读全文
摘要:
关于IP合法性判断的题目,每个oj上的约束条件不尽相同,我就根据自己做过的题目吧所有的约束条件汇总到一块,到时候做题时只需要把多余的越是条件删掉即可 题目描述: 对于IP我们总会有一定的规定,合法的IP必须的满足我们给定的条件,先在我们对IP的合法性做出以下的规定。 1.IP中必须有四个数字,三个' 阅读全文
摘要:
" 题目链接 " Problem Description The magician shuffles a small pack of cards, holds it face down and performs the following procedure: 1.The top card is m 阅读全文