摘要:
A. A. Vasya and Chocolate time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Vasya and Ch 阅读全文
摘要:
前言 之前对0-1背包就理解的不是很好,并且时间长了会忘的。 这次又重新复习一下,理解了好几个以前没理解的点。 阅读全文
摘要:
The 3n + 1 problem Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 60496 Accepted: 19218 Description Problems in Computer Science are often 阅读全文
摘要:
I Think I Need a Houseboat POJ - 1005 解题思路:水题 #include <iostream> #include <cstdio> #include <cmath> using namespace std; int main() { int n; double x 阅读全文
摘要:
Financial Management POJ - 1004 解题思路:水题。 #include <iostream> #include <cstdio> #include <iomanip> #include <cmath> using namespace std; int main() { d 阅读全文
摘要:
How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming 阅读全文
摘要:
现在有许多房源,于是贝壳找房为每个房子都设置了一个等级,从郊区到市区依次排开(这些房子都是连续的),凑巧的是这些房子的等级正好满足数列: \displaystyle a_{i + 1} = a_i + i + 2,\ \ \ \ a_1 = 1ai+1=ai+i+2, a1=1 现在有许多客户 阅读全文
摘要:
一个规则的实心十二面体,它的 20个顶点标出世界著名的20个城市,你从一个城市出发经过每个城市刚好一次后回到出发的城市。 Input前20行的第i行有3个数,表示与第i个城市相邻的3个城市.第20行以后每行有1个数m,m<=20,m>=1.m=0退出. Output输出从第m个城市出发经过每个城市1 阅读全文
摘要:
C 暂时还不对 F 暂时不对 G J K 阅读全文
摘要:
Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet. Especially a 阅读全文