
水题
文章平均质量分 62
iwillbebetteryeah
这个作者很懒,什么都没留下…
展开
-
不要62 数位dp
题目:杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。 杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可以消除个别的士司机和乘客的心理障碍,更安全地服务大众。不吉利的数字为所有含有4或62的号码。例如: 62315 73418 88914 都属于不吉利号码。但是,61152虽然含有6和2,但不是62连号原创 2018-02-02 19:05:12 · 153 阅读 · 0 评论 -
楼房间距
X星球居民小区的楼房全是一样的,并且按矩阵样式排列。其楼房的编号为1,2,3…当排满一行时,从下一行相邻的楼往反方向排号。 比如:当小区排号宽度为6时,开始情形如下: 1 2 3 4 5 6 12 11 10 9 8 7 13 14 15 ….. 我们的问题是:已知了两个楼号m和n,需要求出它们之间的最短移动距离(不能斜线方向移动) 输入为3个整数w m n,空格分开,...原创 2018-03-04 10:01:23 · 247 阅读 · 0 评论 -
思维逆向
题目: We’ve got no test cases. A big olympiad is coming up. But the problemsetters’ number one priority should be adding another problem to the round.The diameter of a multiset of points on the line ...原创 2018-03-10 22:20:55 · 242 阅读 · 0 评论 -
关于精度问题
题目: Lilin was a student of Tonghua Normal University. She is studying at University of Chicago now. Besides studying, she worked as a tutor teaching Chinese to Americans. So, she can earn some money ...原创 2018-03-10 21:50:09 · 223 阅读 · 0 评论 -
MaratonIME plays Nim
题目:Ai Fox! UnionFind, Germano You open your eyes, but everything remains dark. The world is dark, and everything shakes. You realize you are locked in, but before desperation takes hold, you hear ...原创 2018-03-16 19:11:36 · 646 阅读 · 0 评论 -
dfs
1.Fire net题目:Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a street or a piece of wall. A blockhouse is a sma...原创 2018-02-10 00:17:58 · 355 阅读 · 0 评论 -
猜年龄
题目:美国数学家维纳(N.Wiener)智力早熟,11岁就上了大学。他曾在1935~1936年应邀来中国清华大学讲学。一次,他参加某个重要会议,年轻的脸孔引人注目。于是有人询问他的年龄,他回答说:“我年龄的立方是个4位数。我年龄的4次方是个6位数。这10个数字正好包含了从0到9这10个数字,每个都恰好出现1次。”请你推算一下,他当时到底有多年轻。通过浏览器,直接提交他那时的年龄数字。...原创 2018-02-13 10:59:17 · 218 阅读 · 0 评论 -
马虎的算式
题目: 小明是个急性子,上小学的时候经常把老师写在黑板上的题目抄错了。 有一次,老师出的题目是:36 x 495 = ? 他却给抄成了:396 x 45 = ? 但结果却很戏剧性,他的答案竟然是对的!! 因为 36 * 495 = 396 * 45 = 17820 类似这样的巧合情况可能还有很多,比如:27 * 594 = 297 * 5...原创 2018-02-13 11:14:47 · 227 阅读 · 0 评论 -
指针排序
1.整数代码:#include<iostream>using namespace std;void swap(int *p1,int *p2){ int t; t=*p1; *p1=*p2; *p2=t;}void sort(int *a,int *b,int *c){ if(*a>*b) swap(a,b);...原创 2018-02-13 10:24:06 · 4366 阅读 · 0 评论 -
大数相加 Java
1.问题:n个不超过1000位的大数相加2.代码:import java.math.BigInteger;import java.util.Scanner;public class bignumber { public static void main(String[] args) { Scanner sc=new Scanner(System.in); ...原创 2018-02-11 22:25:45 · 570 阅读 · 0 评论 -
敌兵布阵 线段树 树状数组
A - 敌兵布阵 C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生变动,可能增加或减少若干人手,但这些都逃不过C国的监视。 中央情报局要研究敌原创 2018-01-29 02:19:37 · 236 阅读 · 0 评论 -
Fatmouse
题目:FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean. The warehouse has N rooms. The i-th room contains J[i] pounds...原创 2018-03-14 15:07:47 · 383 阅读 · 0 评论