A+B Problem && OJ推荐【持续更新】


List

前言

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

长郡

热烈推荐:http://oj.changjun.com.cn/
然后有一套A+B的神题-Contest4 - A+B Series(http://www.cnblogs.com/YJinpeng/p/5942724.html)

Position:

不同的题目:
--- hdu1000(见code2)-多组数据,坑
其他没有A+B Problem好的OJ

code

e
搞了三发才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;
}

持续更新,么么哒

转载于:https://www.cnblogs.com/YJinpeng/p/5907430.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值