摘要: #include<bits/stdc++.h> #define MAX 155 using namespace std; struct Node { int exp; int pat; }mon[155]; int dp[MAX][MAX]; int main() { int n,m,k,s; in 阅读全文
posted @ 2016-03-25 22:37 超级学渣渣 阅读(573) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; struct Bank { double cau; int money; }bank[105]; double dp[10005]; int main() { int n; cin>>n; while(n--) 阅读全文
posted @ 2016-03-25 21:22 超级学渣渣 阅读(402) 评论(0) 推荐(0) 编辑
摘要: Description Input Output Sample Input Sample Output 阅读全文
posted @ 2016-03-23 07:53 超级学渣渣 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Description It's commonly known that the Dutch have invented copper-wire. Two Dutch men were fighting over a nickel, which was made of copper. They we 阅读全文
posted @ 2016-03-21 16:34 超级学渣渣 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 这两道题基本思路是一样的,不过uva147的输出实在是个大坑,因为double的问题,所以考虑精度的损失。 代码中的输出部分被我注释掉的那一部分是错误的输出,格式什么的都是正确的,但是存在精度的损失。应该注意一下 hdu1284 Description Input Output Sample Inp 阅读全文
posted @ 2016-03-21 15:45 超级学渣渣 阅读(214) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/songacm/p/3537419.html 引用自这篇博客,真·大神 阅读全文
posted @ 2016-03-21 12:56 超级学渣渣 阅读(248) 评论(0) 推荐(0) 编辑
摘要: Description In ``Hangman Judge,'' you are to write a program that judges a series of Hangman games. For each game, the answer to the puzzle is given a 阅读全文
posted @ 2016-03-19 16:45 超级学渣渣 阅读(310) 评论(0) 推荐(0) 编辑
摘要: Description In this problem you are to generate a triangular wave form according to a specified pair of Amplitude and Frequency. The input begins with 阅读全文
posted @ 2016-03-19 13:00 超级学渣渣 阅读(530) 评论(0) 推荐(0) 编辑
摘要: Description Your mission, if you decide to accept it, is to create a maze drawing program. A maze will consist of the alphabetic characters A-Z, *(ast 阅读全文
posted @ 2016-03-18 20:12 超级学渣渣 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 这道题的难点在于怎么确定读取一行数据,用fgets读取数据流中的所有字符。 fgets(s,size,stdin);//从标准输入流中读取一行数据到s[]里面去。 阅读全文
posted @ 2016-03-17 22:11 超级学渣渣 阅读(185) 评论(0) 推荐(0) 编辑