List

前言

有没有觉得写这篇文章很奇怪,这个还是有原因的。①很多OJ都有着道题,所以发个博客②这可以介绍很多OJ(持续更新)

长郡

热烈推荐:http://oj.changjun.com.cn/

然后有一套A+B的神题-Contest4 - A+B Series(http://www.cnblogs.com/YJinpeng/p/5942724.html)

Position:

Notice

不同的题目:

--- hdu1000(见code2)-多组数据,坑

其他没有A+B Problem好的OJ

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;
}

持续更新,么么哒

最新文章

  1. import com.sun.image.codec.jpeg.JPEGCodec不通过 找不到包
  2. 3D场景定位的一些资源
  3. 使用BCrypt算法加密存储登录密码用法及好处
  4. Linux 配置只安装 64 位软件包
  5. Servlet 工作原理解析
  6. node.js 1Million concurrent connections!
  7. JavaScript- The Good Parts Chapter 3 Objects
  8. 写自己的WPF样式 - 窗体
  9. USB挂起与唤醒.
  10. linux脚本定时备份数据库表(详解)
  11. 【Debug】IAR在线调试时报错,Warning: Stack pointer is setup to incorrect alignmentStack,芯片使用STM32F103ZET6
  12. 【CF446C】DZY Loves Fibonacci Numbers (线段树 + 斐波那契数列)
  13. Jquery中AJAX参数详细(1)-转
  14. mysqlbinlog基于位置点恢复
  15. python 使用PyInstaller将程序打包
  16. SQLGetStmtAttr
  17. 20145106java实验四
  18. SpringCloud初体验:五、Sidecar 将 PHP 这类非 Java 生态语言的服务接入 Spring Cloud
  19. 大白dmeo (转的)
  20. king 选 太子

热门文章

  1. RRAS
  2. Python入门--7--元祖:列表的顽固亲戚
  3. Python入门--4--分之和循环
  4. Redis命令行之Set
  5. golang 进程、线程、协程 简介
  6. Ubuntu使用iptables配置防火墙提示:unrecognized service(Ubuntu配置iptables防火墙)
  7. 使用webstorm+webpack构建简单入门级“HelloWorld”的应用&amp;&amp;构建使用jquery来实现
  8. BUPT复试专题—二叉排序树(2012)
  9. leetcode Valid Palindrome C++&amp;amp;python 题解
  10. POJ1811_Prime Test【Miller Rabin素数測试】【Pollar Rho整数分解】