A+B Problem && OJ推荐【持续更新】
2016-09-25 22:59
239 查看
List
[TOC]前言
有没有觉得写这篇文章很奇怪,这个还是有原因的。①很多OJ都有着道题,所以发个博客②这可以介绍很多OJ(持续更新)
长郡
热烈推荐:http://oj.changjun.com.cn/然后有一套A+B的神题-Contest4 - A+B Series(http://www.cnblogs.com/YJinpeng/p/5942724.html)
Position:
POJ-PKU JudgeOnline http://poj.org/problem?id=1000Bzoj-大视野在线评测 http://www.lydsy.com/JudgeOnline/problem.php?id=1000
HDU-杭州电子科技大学 http://acm.hdu.edu.cn/showproblem.php?pid=1000
Vijos https://vijos.org/p/1000
Codevs http://codevs.cn/problem/1000/
洛谷 http://www.luogu.org/problem/show?pid=1001#sub
FZU福州大学 http://acm.fzu.edu.cn/problem.php?pid=1000
CDOJ http://acm.uestc.edu.cn/#/problem/show/1
UOJ http://uoj.ac/problem/1
Notice
不同的题目:
--- hdu1000(见code2)-多组数据,坑
其他没有A+B Problem好的OJ
Codefoces
BNUOJ
Topcoder
Codechef
code
搞了三发才0ms
#include <iostream> #include <cstdio> inline int gi() { register int w=0;register char ch=getchar(); while(ch<'0'||ch>'9')ch=getchar(); while(ch>='0'&&ch<='9')w=w*10+ch-'0',ch=getchar(); return w; } int main() { printf("%d",gi()+gi()); return 0; }
1.
// <A+B_Problem.cpp> - 08/13/16 15:16:49 // This file is made by YJinpeng,created by XuYike's black technology automatically. // Copyright (C) 2016 ChangJun High School, Inc. // I don't know what this program is. #include <iostream> #include <vector> #include <algorithm> #include <cstring> #include <cstdio> #include <cstdlib> #include <cmath> #define MOD 1000000007 #define INF 1e9 #define EPS 1e-10 using namespace std; typedef long long LL; const int MAXN=100010; const int MAXM=100010; inline int max(int &x,int &y) {return x>y?x:y;} inline int min(int &x,int &y) {return x<y?x:y;} inline LL getLL() { register LL w=0,q=0;register char ch=getchar(); while((ch<'0'||ch>'9')&&ch!='-')ch=getchar(); if(ch=='-')q=1,ch=getchar(); while(ch>='0'&&ch<='9')w=w*10+ch-'0',ch=getchar(); return q?-w:w; } int main() { freopen("A+B_Problem.in","r",stdin); freopen("A+B_Problem.out","w",stdout); LL a=getLL(),b=getLL(); cout<<a+b; return 0; }
2.
// <A+B_Problem.cpp> - 08/13/16 15:16:49 // This file is made by YJinpeng,created by XuYike's black technology automatically. // Copyright (C) 2016 ChangJun High School, Inc. // I don't know what this program is. #include <iostream> #include <vector> #include <algorithm> #include <cstring> #include <cstdio> #include <cstdlib> #include <cmath> #define MOD 1000000007 #define INF 1e9 #define EPS 1e-10 using namespace std; typedef long long LL; const int MAXN=100010; const int MAXM=100010; inline int max(int &x,int &y) {return x>y?x:y;} inline int min(int &x,int &y) {return x<y?x:y;} inline int getLL() { register LL w=0,q=0;register char ch=getchar(); while((ch<'0'||ch>'9')&&ch!='-')ch=getchar(); if(ch=='-')q=1,ch=getchar(); while(ch>='0'&&ch<='9')w=w*10+ch-'0',ch=getchar(); return q?-w:w; } int main() { freopen("A+B_Problem.in","r",stdin); freopen("A+B_Problem.out","w",stdout); int a,b; while(~scanf("%d%d",&a,&b))printf("%d\n",a+b); return 0; }
持续更新,么么哒
相关文章推荐
- A+B Problem && OJ推荐
- 【持续更新】书籍推荐
- 好书推荐(持续更新ing)
- http://acm.hdu.edu.cn/webcontest/contest_showproblem.php?cid=791&pid=1001&ojid=0
- http://cdn.ac.nbutoj.com/Problem/view.xhtml?id=1001&&纸牌游戏
- C++学习博客&书本推荐(自身学习过程中陆续更新)
- STL &amp; Boost 相关中文信息收集(持续更新中)
- http://cdn.ac.nbutoj.com/Problem/view.xhtml?id=1198&& I can do it!
- Leetop/Ext-Desktop Web桌面 项目开发实录<持续更新中....>
- Lex & Flex 词法分析器实践(未完,持续更新)
- http://cdn.ac.nbutoj.com/Problem/view.xhtml?id=1184&&Elaine's Queue
- 推荐一些软件(持续更新)
- (转)Eclipse 3.6 插件资源-持续更新ing-更新7次--欢迎有好用插件的朋友推荐
- .NET技术博客:牛人牛博强力推荐(持续更新)
- 优秀的技术blog推荐(持续更新)
- CS经典书籍推荐---持续更新中
- windowmaker (wmaker)使用笔记> >持续更新
- 【转】 Topcoder好题推荐 ( 持续更新中 )
- STL &amp; Boost 相关中文信息收集(持续更新中)
- http://cdn.ac.nbutoj.com/Problem/view.xhtml?id=1182&&Counter-Strike