HDU 3573 Buy Sticks 贪心
摘要:
很简单一题,见代码#include<stdio.h>
#include<stdlib.h>
#include<math.h>
using namespace std;
int min(int a,int b){ return a<b?a:b; }
int main(){ int t,T; int a,b,c; scanf("%d",&T); int sum; for(t=1;t<=T;t++){ sum=0; scanf("%d %d %d",&a,&... 阅读全文
posted @ 2012-01-25 22:03 c语言源码 阅读(148) 评论(0) 推荐(0) 编辑