Live2D
摘要: Description给定些数字,这些数中只有一个数出现了奇数次,找出这个数。 Input每组数据第一行n表示数字个数,1 int main(){ int T; while (~scanf("%d", &T)) { int x; int cnt = 0; wh... 阅读全文
posted @ 2018-05-08 15:24 ITryagain 阅读(125) 评论(0) 推荐(0) 编辑
摘要: DescriptionDanni想为屏幕上的一个矩形着色,但是她想到了一个问题。当点击鼠标以后电脑是如何判断填充的区域呢?现在给你一个平面直角坐标系,其中有一个矩形和一个点,矩形的四条边均是平行于x轴或y轴的。请你判断这个点相对于矩形的位置,即在矩形内,在矩形上,还是... 阅读全文
posted @ 2018-05-08 15:20 ITryagain 阅读(129) 评论(0) 推荐(0) 编辑
摘要: DescriptionJames得到了一堆有趣的硬币,于是决定用这些硬币跟朋友们玩个小游戏。在一个N行M列的表格上,每一个第i行第j列的格子上都放有一枚James的硬币,抛该硬币正面朝上的概率为Pij,所有抛硬币事件两两之间是相互独立的。现在,玩家在M列硬币中,从每一... 阅读全文
posted @ 2018-05-08 15:18 ITryagain 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Description有三户人家共拥有一座花园,每户人家的太太均需帮忙整理花园。A 太太工作了5 天,B 太太则工作了4 天,才将花园整理完毕。C 太太因为正身怀六甲无法加入她们的行列,便出了90元。请问这笔钱如何分给A、B 二位太太较为恰当?A 应得多少元?90/(... 阅读全文
posted @ 2018-05-08 15:12 ITryagain 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Description数轴原点有一个机器人。该机器人将执行一系列指令,你的任务是预测所有指令执行完毕之后它的位置。·LEFT:往左移动一个单位·RIGHT: 往右移动一个单位·SAME AS i: 和第i 条执行相同的动作。输入保证i 是一个正整数,且不超过之前执行指... 阅读全文
posted @ 2018-05-08 15:08 ITryagain 阅读(138) 评论(0) 推荐(0) 编辑
摘要: DescriptionMr. Mindless has many balls and many boxes,he wants to put all the balls into some of the boxes.Now, he wants to know how m... 阅读全文
posted @ 2018-05-08 15:05 ITryagain 阅读(113) 评论(0) 推荐(0) 编辑
摘要: DescriptionBinary Search Tree, abbreviated as BST, is a kind of binary tree maintains the following property:each node has a Key value... 阅读全文
posted @ 2018-05-08 15:02 ITryagain 阅读(129) 评论(0) 推荐(0) 编辑
摘要: DescriptionACM小组的Samsara和Staginner对中国象棋特别感兴趣,尤其对马(可能是因为这个棋子的走法比较多吧)的使用进行深入研究。今天他们又在 构思一个古怪的棋局:假如Samsara只有一个马了,而Staginner又只剩下一个将,两个棋子都在... 阅读全文
posted @ 2018-05-08 14:59 ITryagain 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Description Z is crazy about coffee. One day he bought three cups of coffee. The first cup has a capacity of A ml, the second has B ml... 阅读全文
posted @ 2018-04-19 20:31 ITryagain 阅读(350) 评论(0) 推荐(1) 编辑
摘要: Description Z likes to play with array. One day his teacher gave him an array of n elements, and ask Z whether the array is a "m-peek"... 阅读全文
posted @ 2018-04-19 20:28 ITryagain 阅读(254) 评论(0) 推荐(0) 编辑
摘要: Description​ 一条‘Z’形线可以将平面分为两个区域,那么由N条Z形线所定义的区域的最大个数是多少呢?每条Z形线由两条平行的无限半直线和一条直线段组成 Input首先输入一个数字T(T0都有ans(Z)=ans(Z-1)+9*(Z-1)+1 于是就可以算出... 阅读全文
posted @ 2018-04-19 20:24 ITryagain 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Description冰弦非常热衷于过气微信小游戏“跳一跳”,现在给出了他每次游戏时的一些信息,请你帮他计算一下每局游戏的得分。跳一跳的游戏规则如下:玩家操控一个小棋子,在形状各异的“盒子”上边一路往前跳,当棋子跌落盒子之外时则游戏结束。盒子的正中心为“完美落点”,其... 阅读全文
posted @ 2018-04-19 20:11 ITryagain 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Description这一天,小A和小B在玩一个游戏,他俩每人都有一个整数,然后两人轮流对他们的整数进行操作,每次在下列两个操作任选一个: (1)对整数进行翻转,如1234翻转成4321 ,1200翻转成21 (2)将整数除以10,如1234/10=123,1/10... 阅读全文
posted @ 2018-04-19 20:10 ITryagain 阅读(147) 评论(0) 推荐(0) 编辑
摘要: DescriptionAs is known to all, Wells is impoverished. When God heard that, God decide to help the poor Wells from terrible condition.... 阅读全文
posted @ 2018-04-19 20:01 ITryagain 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Problem A Artwork Problem ID: artwork Time limit: 4 secondsA template for an artwork is a white grid of n×m squares. The artwork will ... 阅读全文
posted @ 2018-04-06 19:41 ITryagain 阅读(249) 评论(0) 推荐(0) 编辑
摘要: Aggressive cowsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 18099 Accepted: 8619DescriptionFarmer John has built a new lo... 阅读全文
posted @ 2018-03-24 11:37 ITryagain 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Monthly ExpenseTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 31679 Accepted: 11958DescriptionFarmer John is an astounding ... 阅读全文
posted @ 2018-03-24 11:22 ITryagain 阅读(125) 评论(0) 推荐(0) 编辑
摘要: K BestTime Limit: 8000MS Memory Limit: 65536KTotal Submissions: 12812 Accepted: 3290Case Time Limit: 2000MS Special JudgeDescriptionDe... 阅读全文
posted @ 2018-03-19 18:52 ITryagain 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 4 Values whose Sum is 0Time Limit: 15000MS Memory Limit: 228000KTotal Submissions: 25615 Accepted: 7697Case Time Limit: 5000MSDescript... 阅读全文
posted @ 2018-03-19 18:33 ITryagain 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Most crossword puzzle fans are used to anagrams — groups of words with the same letters in different orders — for example OPTS... 阅读全文
posted @ 2018-02-27 13:38 ITryagain 阅读(255) 评论(0) 推荐(0) 编辑