- 博客(193)
- 收藏
- 关注
原创 POJ 3030 Nasty Hacks G++
#include using namespace std;//真希望英语好 感谢博友翻译 int main(){ int NUM; cin>>NUM; int jg[NUM]; for(int i=0;i<NUM;i++) { int a,b,c; cin>>a>>b>>c; if(a>(b-c)) { jg[i]=1; }else if(a==(b-c
2017-02-28 19:49:58 315
原创 POJ 3196 Babylonian Roulette G++
#include #include #include //谢谢博友的翻译 using namespace std;int main(){ vector jg; int a,b,c; while(1) { cin>>a>>b>>c; if((a==0)&&(b==0)&&(c==0)) { break; } if(abs(c-a)%b!=0) {
2017-02-27 21:11:54 282
原创 POJ 3183 Stump Removal G++
#include //好不容易碰到个会的题 心里好受多了 谢谢博友翻译 using namespace std;int main(){ int NUM; cin>>NUM; int a[NUM]; for(int i=0;i<NUM;i++) { cin>>a[i]; } for(int i=0;i<NUM;i++) { if((i==0)&&(a[i]>=a
2017-02-26 20:54:47 243
原创 POJ 3117 World Cup G++
#include #include #include using namespace std;int main(){ vector jg; while(1) { int NUM1; int NUM2; cin>>NUM1>>NUM2; if((NUM1==0)&&(NUM2==0)) { break; } int js=0; for(int i
2017-02-25 19:33:38 202
原创 POJ 3224 Go for Lab Cup! G++
#include #include using namespace std;int main(){ int NUM; cin>>NUM; int jg[NUM]; memset(jg,0,sizeof(jg)); int max=0; int sc=0; for(int i=0;i<NUM;i++) { for(int j=0;j<NUM;j++) { int
2017-02-23 19:16:25 274
原创 POJ 3219 Binomial Coefficients G++
#include <iostream>using namespace std;//思路2 思路3背诵 long long fun(long long x){ long long js=0; long long ba=2; while(x>=ba) { js=js+x/ba; ba=ba*2; } return js;}int main...
2017-02-22 21:48:41 212
原创 POJ 3372 Candy Distribution G++
#include #include using namespace std;//没看懂题意 看的博友的解释 int main(){ vector jg; while(1) { int da; cin>>da; if(cin.eof()==1) { break; } int flag=0; while(1) { if((da!=1)
2017-02-22 20:02:07 205
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人