/*简单猜数游戏,magic number#2,版本*/#include<stdio.h>#include<stdlib.h> int main(void){ int magic; /*magic number*/ int guess; /*user's guess*/ printf("\nWelc ...
分类:
其他好文 时间:
2017-03-03 23:01:27
阅读次数:
188
再次,,,,,虚(一开始看错题了,看成一次移动一个棋子,能移动1-d个格子。。。这样的话有没有大神会做??本蒟蒻就教) 额,,直接%%%%把。。。http://hzwer.com/5760.html ...
分类:
其他好文 时间:
2017-03-03 23:00:43
阅读次数:
205
https://www.luogu.org/problem/show?pid=1060 题目描述 金明今天很开心,家里购置的新房就要领钥匙了,新房里有一间他自己专用的很宽敞的房间。更让他高兴的是,妈妈昨天对他说:“你的房间需要购买哪些物品,怎么布置,你说了算,只要不超过N元钱就行”。今天一早金明就开 ...
分类:
其他好文 时间:
2017-03-03 22:47:43
阅读次数:
175
23333开始了为期不知道多少天的DP专题23333 (上来第一个大水题就不会,跪) k次修改,最多会产生2*k-1个不同的区间。。然后dp搞一下。。(可以压一维) ...
分类:
其他好文 时间:
2017-03-03 22:33:23
阅读次数:
185
1 public void setName(String str) 2 { 3 name=str; 4 } 5 public void setAge(int a) //set方法需要在括号中定义数据类型 6 { 7 if(a>0) 8 age=a; 9 } 10 public String getN ...
分类:
编程语言 时间:
2017-03-03 22:27:47
阅读次数:
217
1.#include "stdio.h" int main() { char str[] = "hello"; char *s = "hello"; int a[] = {3, 5, 7}; printf("%d\n%d\n%d\n", sizeof(str), sizeof(s), sizeof( ...
分类:
其他好文 时间:
2017-03-03 22:27:12
阅读次数:
182
#include #include #define init_size 1000 typedef struct { int head,tail,size,__size,*seq; }Queue; typedef Queue* Q_P; void init(Q_P q){ q->head=q->tai... ...
分类:
编程语言 时间:
2017-03-03 22:20:29
阅读次数:
229
题目链接: https://leetcode.com/problems/integer-to-roman/?tab=Description String M[] = {"", "M", "MM", "MMM”};//1000~3000String C[] = {"", "C", "CC", "CCC ...
分类:
其他好文 时间:
2017-03-03 22:18:31
阅读次数:
232
【BZOJ4094】[Usaco2013 Dec]Optimal Milking Description Farmer John最近购买了N(1 <= N <= 40000)台挤奶机,编号为1 ... N,并排成一行。第i台挤奶机每天能够挤M(i )单位的牛奶 (1 < =M(i) <=100,00 ...
分类:
其他好文 时间:
2017-03-03 21:06:58
阅读次数:
191
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted f ...
分类:
其他好文 时间:
2017-03-03 21:01:37
阅读次数:
173