![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Virtual Judge ——小白成长比赛
LqingX
唯沉默是最高轻蔑
展开
-
C - Decoding 小白成长比赛 SDUT
C - DecodingPolycarp is mad about coding, that is why he writes Sveta encoded messages. He calls the median letter in a word the letter which is in the middle of the word. If the word’s length is eve...原创 2019-01-06 13:17:48 · 150 阅读 · 0 评论 -
A - A CodeForces - 618C
Cat Noku has obtained a map of the night sky. On this map, he found a constellation with n stars numbered from 1 to n. For each i, the i-th star is located at coordinates (xi, yi). No two stars are lo...原创 2019-02-19 09:44:24 · 154 阅读 · 0 评论 -
B - B CodeForces - 714B
Today, hedgehog Filya went to school for the very first time! Teacher gave him a homework which Filya was unable to complete without your help.Filya is given an array of non-negative integers a1, a2,...原创 2019-02-19 10:07:33 · 153 阅读 · 0 评论 -
D - Dice Game Gym - 101502D
A dice is a small cube, with each side having a different number of spots on it, ranging from 1 to 6.Each side in the dice has 4 adjacent sides that can be reached by rotating the dice (i.e. the curr...原创 2019-03-05 00:03:15 · 247 阅读 · 0 评论 -
F - Building Numbers Gym - 101502F
In this problem, you can build a new number starting from 1, by performing the following operations as much as you need:Add 1 to the current number.Add the current number to itself (i.e. multiply it...原创 2019-03-05 00:35:22 · 248 阅读 · 4 评论 -
H - 水果 HDU - 1263
夏天来了好开心啊,呵呵,好多好多水果Joe经营着一个不大的水果店.他认为生存之道就是经营最受顾客欢迎的水果.现在他想要一份水果销售情况的明细表,这样Joe就可以很容易掌握所有水果的销售情况了.Input第一行正整数N(0<N<=10)表示有N组测试数据.每组测试数据的第一行是一个整数M(0<M<=100),表示工有M次成功的交易.其后有M行数据,每行表示一次交易,由...原创 2019-02-21 08:46:06 · 115 阅读 · 0 评论 -
A - 画8 HDU - 1256
谁画8画的好,画的快,今后就发的快,学业发达,事业发达,祝大家发,发,发.Input输入的第一行为一个整数N,表示后面有N组数据.每组数据中有一个字符和一个整数,字符表示画笔,整数(>=5)表示高度.Output画横线总是一个字符粗,竖线随着总高度每增长6而增加1个字符宽.当总高度从5增加到6时,其竖线宽度从1增长到2.下圈高度不小于上圈高度,但应尽量接近上圈高度,且下圈的内径呈正...原创 2019-02-21 09:23:39 · 165 阅读 · 0 评论 -
F - Candle Box UVA - 13161
Rita loves her Birthday parties. She is really happy whenblowing the candles at the Happy Birthday’s clap melody.Every year since the age of four she adds her birthday candles(one for every year of...原创 2019-03-05 23:10:05 · 284 阅读 · 0 评论 -
B - Linear Algebra Test Gym - 101502B
Dr. Wail is preparing for today’s test in linear algebra course. The test’s subject is Matrices Multiplication.Dr. Wail has n matrices, such that the size of the ith matrix is (ai × bi), where ai is ...原创 2019-03-03 23:35:26 · 124 阅读 · 0 评论 -
H - Eyad and Math Gym - 101502H
Eyad was given a simple math problem, but since he is very bad at math he asked you to help him.Given 4 numbers, a, b, c, and d. Your task is to find whether ab is less than cd or not.It is guarante...原创 2019-03-04 00:05:06 · 137 阅读 · 0 评论 -
G - Bear and Friendship Condition
Bear Limak examines a social network. Its main functionality is that two members can become friends (then they can talk with each other and share funny pictures).There are n members, numbered 1 throu...原创 2019-03-09 20:30:06 · 163 阅读 · 0 评论 -
C - Spider Man CodeForces - 705B
Description现在有一个关于数字的游戏,初始时有一些数。一次操作可以将一个大小为 x(x>1) 的数拆为两个大小为 x-p 和 p 的数,p 的值由玩家任选的小于k的正整数。现在两人轮流操作,将数字不断的分解,先不能操作的玩家失败,问先手必胜还是后手必胜。游戏分为很多轮。每一轮,裁判都会在上一轮的基础上新增加一个数字,然后询问先手是否必胜。Input第一行包含一个整数 n (...原创 2019-03-09 20:38:10 · 265 阅读 · 0 评论 -
F - F
You are given two arrays of integers a and b. For each element of the second array bj you should find the number of elements in array a that are less than or equal to the value bj.InputThe first lin...原创 2019-02-18 21:30:04 · 191 阅读 · 0 评论 -
K - 素数回文(25) HDU - 1431
xiaoou33对既是素数又是回文的数特别感兴趣。比如说151既是素数又是个回文。现在xiaoou333想要你帮助他找出某个范围内的素数回文数,请你写个程序找出 a 跟b 之间满足条件的数。(5 <= a < b <= 100,000,000);Input这里有许多组数据,每组包括两组数据a跟b。Output对每一组数据,按从小到大输出a,b之间所有满足条件的素数回文数(...原创 2019-02-22 16:11:05 · 244 阅读 · 0 评论 -
B - Anton and Classes SDUT
B - Anton and Classes SDUTAnton likes to play chess. Also he likes to do programming. No wonder that he decided to attend chess classes and programming classes.Anton has n variants when he will atte...原创 2019-01-21 08:29:28 · 129 阅读 · 0 评论 -
A - Polycarp and Letters SDUT
A - Polycarp and Letters SDUTPolycarp loves lowercase letters and dislikes uppercase ones. Once he got a string s consisting only of lowercase and uppercase Latin letters.Let A be a set of positions...原创 2019-01-21 08:52:16 · 106 阅读 · 1 评论 -
B-Good-Array SDUT
B-Good-Array SDUTLet’s call an array good if there is an element in the array that equals to the sum of all other elements. For example, the array a=[1,3,3,7]a=[1,3,3,7] is good because there is the ...原创 2019-01-21 08:56:46 · 241 阅读 · 0 评论 -
C - Dishonest Sellers SDUT
C - Dishonest Sellers SDUTIgor found out discounts in a shop and decided to buy n items. Discounts at the store will last for a week and Igor knows about each item that its price now is ai, and after...原创 2019-01-21 21:41:48 · 102 阅读 · 0 评论 -
A. Alyona and copybooks
A. Alyona and copybookstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle girl Alyona is in a shop to buy some copybooks for school. She s...原创 2019-01-17 08:24:39 · 115 阅读 · 0 评论 -
B - 单词数 HDU - 2072
B - 单词数 HDU - 2072lily的好朋友xiaoou333最近很空,他想了一件没有什么意义的事情,就是统计一篇文章里不同单词的总数。下面你的任务是帮助xiaoou333解决这个问题。Input有多组数据,每组一行,每组就是一篇小文章。每篇小文章都是由小写字母和空格组成,没有标点符号,遇到#时表示输入结束。Output每组只输出一个整数,其单独成行,该整数代表一篇文章里不同单词...原创 2019-02-06 20:40:40 · 166 阅读 · 0 评论 -
E - A + B Again HDU - 2057
E - A + B Again HDU - 2057There must be many A + B problems in our HDOJ , now a new one is coming.Give you two hexadecimal integers , your task is to calculate the sum of them,and print it in hexade...原创 2019-02-06 21:02:21 · 119 阅读 · 0 评论 -
E - Tickets HDU - 1260(dp)
Jesus, what a great movie! Thousands of people are rushing to the cinema. However, this is really a tuff time for Joe who sells the film tickets. He is wandering when could he go back home as early as...原创 2019-02-21 17:28:41 · 114 阅读 · 0 评论 -
E - 18岁生日(20) HDU - 1201 (算日期)
Gardon的18岁生日就要到了,他当然很开心,可是他突然想到一个问题,是不是每个人从出生开始,到达18岁生日时所经过的天数都是一样的呢?似乎并不全都是这样,所以他想请你帮忙计算一下他和他的几个朋友从出生到达18岁生日所经过的总天数,让他好来比较一下。*Input一个数T,后面T行每行有一个日期,格式是YYYY-MM-DD。如我的生日是1988-03-07。OutputT行,每行一个数,...原创 2019-02-22 14:28:14 · 122 阅读 · 0 评论 -
A - How to Type HDU - 2577(dp)
Pirates have finished developing the typing software. He called Cathy to test his typing software. She is good at thinking. After testing for several days, she finds that if she types a string by some...原创 2019-03-10 10:31:04 · 120 阅读 · 0 评论