
水题
文章平均质量分 73
Tsaryu
这个作者很懒,什么都没留下…
展开
-
Codeforces 764 A Taymyr is calling you
Comrade Dujikov is busy choosing artists for Timofey's birthday and is recieving calls from Taymyr from Ilia-alpinist.Ilia-alpinist calls every n minutes, i.e. in minutes n, 2n, 3n and so on. Artist原创 2017-02-06 18:15:06 · 597 阅读 · 0 评论 -
Codeforces 789 A (Anastasia and pebbles )
Anastasia loves going for a walk in Central Uzhlyandian Park. But she became uninterested in simple walking, so she began to collect Uzhlyandian pebbles. At first, she decided to collect all the pebbl原创 2017-04-09 16:58:07 · 567 阅读 · 0 评论 -
Captcha Cracker(BNUOJ 同步赛)
C. Captcha CrackerTime Limit: 1000msMemory Limit: 262144KB64-bit integer IO format: %lld Java class name: MainSubmit Statuswww.02469.com(本网页纯属虚构,如有雷同,纯属巧合),是一个资源丰富的教学资源网原创 2017-04-22 22:37:33 · 576 阅读 · 0 评论 -
Another Server(BNUOJ 同步赛)
A. Another ServerTime Limit: 1000msMemory Limit: 262144KB64-bit integer IO format: %lld Java class name: MainSubmit Status何老师某天在机房里搞事情的时候,发现机房里有台服务器,从到标号,同时有条网线,从到标号,其中第原创 2017-04-22 22:41:43 · 273 阅读 · 0 评论 -
蓝桥杯2017年A组 迷宫
1.标题:迷宫X星球的一处迷宫游乐场建在某个小山坡上。它是由10x10相互连通的小房间组成的。房间的地板上写着一个很大的字母。我们假设玩家是面朝上坡的方向站立,则:L表示走到左边的房间,R表示走到右边的房间,U表示走到上坡方向的房间,D表示走到下坡方向的房间。X星球的居民有点懒,不愿意费力思考。他们更喜欢玩运气类的游戏。这个游戏也是如此!开始的时候,直升机把100名玩家放入一个个小房间内。玩家一定...原创 2018-03-26 20:18:06 · 584 阅读 · 0 评论 -
2016年蓝桥杯A组 网友年龄
某君新认识一网友。 当问及年龄时,他的网友说: “我的年龄是个2位数,我比儿子大27岁, 如果把我的年龄的两位数字交换位置,刚好就是我儿子的年龄” 请你计算:网友的年龄一共有多少种可能情况? 提示:30岁就是其中一种可能哦. 请填写表示可能情况的种数。 注意:你提交的应该是一个整数,不要填写任何多余的内容或说明性文字。答案是7#include <cstdio>#include <...原创 2018-03-27 22:03:54 · 514 阅读 · 0 评论 -
2016年蓝桥杯A组 生日蜡烛
某君从某年开始每年都举办一次生日party,并且每次都要吹熄与年龄相同根数的蜡烛。 现在算起来,他一共吹熄了236根蜡烛。 请问,他从多少岁开始过生日party的? 请填写他开始过生日party的年龄数。 注意:你提交的应该是一个整数,不要填写任何多余的内容或说明性文字题目分析:等差数列的公式,然后枚举一下。范围可以从1到200,根据题目意思合理即可。#include <cstdio>...原创 2018-03-27 22:13:03 · 258 阅读 · 0 评论 -
2016年蓝桥杯A组 四平方和(暴力枚举)
四平方和定理,又称为拉格朗日定理: 每个正整数都可以表示为至多4个正整数的平方和。 如果把0包括进去,就正好可以表示为4个数的平方和。比如: 5 = 0^2 + 0^2 + 1^2 + 2^2 7 = 1^2 + 1^2 + 1^2 + 2^2 (^符号表示乘方的意思)对于一个给定的正整数,可能存在多种平方和的表示法。 要求你对4个数排序: 0 <= a <= b <= c &l...原创 2018-03-28 20:26:26 · 422 阅读 · 1 评论 -
2015年蓝桥杯 A组 (奇妙的数字)
小明发现了一个奇妙的数字。它的平方和立方正好把0~9的10个数字每个用且只用了一次。 你能猜出这个数字是多少吗? 请填写该数字,不要填写任何多余的内容。枚举#include <cstdio>#include <cstring>#include <iostream>using namespace std;int vis[20];int main(){...原创 2018-03-29 11:08:13 · 326 阅读 · 0 评论 -
Codeforces 782 Andryusha and Socks
Andryusha is an orderly boy and likes to keep things in their place.Today he faced a problem to put his socks in the wardrobe. He has n distinct pairs of socks which are initially in a bag. The pair原创 2017-03-11 16:14:10 · 224 阅读 · 0 评论 -
CodeForces - 777B Game of Credit Cards
After the fourth season Sherlock and Moriary have realized the whole foolishness of the battle between them and decided to continue their competitions in peaceful game of Credit Cards.Rules of this原创 2017-02-25 16:18:49 · 710 阅读 · 0 评论 -
CodeForces - 764B Timofey and cubes
Young Timofey has a birthday today! He got kit of n cubes as a birthday present from his parents. Every cube has a number ai, which is written on it. Timofey put all the cubes in a row and went to u原创 2017-02-06 21:17:15 · 660 阅读 · 0 评论 -
HDU 6015 bestcoder #92 Skip the Class
Skip the Class Accepts: 678 Submissions: 1285 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)问题描述终于又开学啦。呃喵最喜欢的就是开学了,因为这样她又可以愉快地翘课了(啊?)呃喵接原创 2017-02-27 21:23:43 · 117 阅读 · 0 评论 -
codeforces 764C Timofey and a tree (思维题)
Each New Year Timofey and his friends cut down a tree of n vertices and bring it home. After that they paint all the n its vertices, so that the i-th vertex gets color ci.Now it's time for Timofey原创 2017-02-09 18:34:32 · 437 阅读 · 0 评论 -
石子合并 (区间dp)
石子合并(一)时间限制:1000 ms | 内存限制:65535 KB难度:3描述 有N堆石子排成一排,每堆石子有一定的数量。现要将N堆石子并成为一堆。合并的过程只能每次将相邻的两堆石子堆成一堆,每次合并花费的代价为这两堆石子的和,经过N-1次合并后成为一堆。求出总的代价最小值。输入有多组测试数据,输入到文件结束。每组测试数据第一行有一个整原创 2017-02-14 20:00:36 · 1232 阅读 · 0 评论 -
CCPC 2016安徽大学站 I 朋友 hdu 5969
B君和G君聊天的时候想到了如下的问题。 给定自然数l和r ,选取2个整数x,y满足l 其中|表示按位或,即C、 C++、 Java中的|运算。Input包含至多10001组测试数据。 第一行有一个正整数,表示数据的组数。 接下来每一行表示一组数据,包含两个整数l,r。 保证 0 10181018。Output对于每组数据输出一行,表示最大的位或。Sample I原创 2017-02-14 09:44:11 · 599 阅读 · 0 评论 -
Codeforces 766A Mahmoud and Longest Uncommon Subsequence
While Mahmoud and Ehab were practicing for IOI, they found a problem which name was Longest common subsequence. They solved it, and then Ehab challenged Mahmoud with another problem.Given two string原创 2017-02-14 20:56:48 · 757 阅读 · 0 评论 -
CodeForces - 766B Mahmoud and a Triangle
Mahmoud has n line segments, the i-th of them has length ai. Ehab challenged him to use exactly 3 line segments to form a non-degenerate triangle. Mahmoud doesn't accept challenges unless he is sure原创 2017-02-14 21:05:25 · 710 阅读 · 0 评论 -
CodeForces - 777A Shell Game
Bomboslav likes to look out of the window in his room and watch lads outside playing famous shell game. The game is played by two persons: operator and player. Operator takes three similar opaque shel原创 2017-02-25 15:39:10 · 250 阅读 · 0 评论 -
2014年蓝桥杯A组 神奇算式
标题:神奇算式 由4个不同的数字,组成的一个乘法算式,它们的乘积仍然由这4个数字组成。 比如: 210 x 6 = 1260 8 x 473 = 378427 x 81 = 2187 都符合要求。 如果满足乘法交换律的算式算作同一种情况,那么,包含上边已列出的3种情况,一共有多少种满足要求的算式。 请填写该数字,通过浏览器提交答案,不要填写多余内容(例如:列出所有算式)...原创 2018-03-29 16:05:50 · 514 阅读 · 1 评论