
第一章 基础编程题
woniupengpeng
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
POJ 2271 HTML G++
#include #include #include using namespace std; int main() { vector jg; while(1) { string str; cin>>str; if(cin.eof()==1) { break; } jg.push_back(str); } int sum=0; for(int i=0原创 2017-10-02 09:18:03 · 202 阅读 · 0 评论 -
POJ 3695 Rectangles 笔记
N个矩形,已知左下右上坐标。M条查询,每条需求出R个矩形组成的新图形的面积。原创 2017-10-03 15:32:28 · 233 阅读 · 0 评论 -
POJ 1519 Digital Roots G++
#include #include #include using namespace std; int main() { string hello[1000]; int n=0; while(1) { cin>>hello[n]; if(hello[n]=="0") { break; } n++; } int a[n]; memset(a,0,siz原创 2016-11-11 11:16:11 · 222 阅读 · 0 评论 -
POJ 1006 生理周期 C++
#include #include using namespace std; int main() { int hello[1000]; memset(hello,-1,sizeof(hello)); /* for(int i=0;i<1000;i++) { cout<<hello[i]<<endl; }*/ int i=0; while(1) { int a;原创 2016-10-31 20:01:19 · 767 阅读 · 0 评论 -
POJ 2247 Humble Numbers G++
只由因子2,3,5,7组成的数称为humble数,所有humble数按升序排列。求第n个humble数。 #include <iostream> #include <cmath> #include <algorithm> #include <vector> //#include <iomanip> using name...原创 2017-06-16 21:36:18 · 234 阅读 · 0 评论 -
POJ 2245 Lotto G++
给出k个数,挑出6个,求所有组合。 #include <iostream> #include <vector> #include <algorithm> using namespace std; //谢谢写书的老师 int main() { while(1) { int n; cin>>n; if(n==0) { ...原创 2017-06-16 20:44:55 · 365 阅读 · 0 评论 -
POJ 1131 Octal Fractions G++
#include <iostream> #include <string> #include <algorithm> using namespace std; string add(string x,string y) { string c; c.reserve(100); string a; a.reserve(100); string ...原创 2017-05-12 09:42:03 · 370 阅读 · 0 评论 -
POJ 1450 Gridland G++
#include #include using namespace std; //谢谢老师 int main() { int NUM; cin>>NUM; for(int i=0;i<NUM;i++) { int x,y; cin>>x>>y; cout<<"Scenario #"<<i+1<<":"<<endl; double jg; if((x*y)%2==0原创 2016-12-05 18:29:53 · 283 阅读 · 0 评论