求助U51028 a+b (这个标题可能较有吸引力)

题目总版

@[Achilles](/space/show?uid=96932) ```cpp #include <cstdio> int main() { long long a,b; scanf("%lld%lld",&a,&b); printf("%lld",a + b); return 0; } ```
by resftlmuttmotw @ 2019-02-15 21:34:22


不是,内存就0MB
by 加油! @ 2019-02-15 21:41:00


是啊,我全用优化io都要好大空间
by tt14159 @ 2019-02-15 21:42:07


装逼用Dinic结果全TQwQ # 再也不装逼了 QwQ
by t162 @ 2019-02-15 21:44:26


@[resftlmuttmotw](/space/show?uid=73992) 恭喜大佬80,一个点TLE(至少比我强,一直60以下) 为什么我的就40?搞不懂哇,玄学 ```cpp #include<bits/stdc++.h> using namespace std; long int a,b; int main() { scanf("%ld%ld",&a,&b); printf("%ld",a+b); return 0; } ```
by Achiles @ 2019-02-15 21:45:51


我全优化都t了两个
by tt14159 @ 2019-02-15 21:46:26


怎么做qwq
by Achiles @ 2019-02-15 21:46:48


```cpp #include <iostream> #include <cstdio> #include <cctype> using namespace std; using std::cin; using std::cout; using std::endl; namespace IN { const int MAX_INPUT = 1000000; #define getc() (p1 == p2 && (p2 = (p1 = buf) + inbuf -> sgetn(buf, MAX_INPUT), p1 == p2) ? EOF : *p1++) char buf[MAX_INPUT], *p1, *p2; template <typename T> inline bool redi(T &x) { static std::streambuf *inbuf = cin.rdbuf(); x = 0; register int f = 0, flag = false; register char ch = getc(); while (!std::isdigit(ch)) { if (ch == '-') f = 1; ch = getc(); } if (std::isdigit(ch)) x = x * 10 + ch - '0', ch = getc(),flag = true; while (std::isdigit(ch)) { x = x * 10 + ch - 48; ch = getc(); } x = f ? -x : x ; return flag; } template <typename T,typename ...Args> inline bool redi(T& a,Args& ...args) { return redi(a) && redi(args...); } #undef getc } namespace OUT { template <typename T> inline void put(T x) { static std::streambuf *outbuf = cout.rdbuf(); static char stack[21]; static int top = 0; if (x < 0) { outbuf -> sputc('-'); x=-x; } if (!x) { outbuf -> sputc('0'); outbuf -> sputc('\n'); return; } while (x) { stack[++top] = x % 10 + '0'; x /= 10; } while (top) { outbuf -> sputc(stack[top]); -- top; } outbuf -> sputc('\n'); } inline void putc (const char ch) { static std::streambuf *outbuf = cout.rdbuf(); outbuf -> sputc(ch); } template <typename T> inline void put(const char ch,T x) { static std::streambuf *outbuf = cout.rdbuf(); static char stack[21]; static int top = 0; if (x < 0) { outbuf -> sputc('-'); x=-x; } if (!x) { outbuf -> sputc('0'); outbuf -> sputc(ch); return; } while (x) { stack[++top] = x % 10 + '0'; x /= 10; } while (top) { outbuf -> sputc(stack[top]); --top; } outbuf -> sputc(ch); } template<typename T,typename ...Args> inline void put(T a,Args ...args) { put(a);put(args...); } template<typename T,typename ...Args> inline void put(const char ch,T a,Args ...args) { put(ch,a);put(ch,args...); } } using IN::redi; using OUT::put; using OUT::putc; int main(int argc, char const *argv[]) { std::ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int a,b; redi(a,b); put(a+b); return 0; } ```
by tt14159 @ 2019-02-15 21:47:49


居然有人a了,tql
by tt14159 @ 2019-02-15 21:48:49


@[tt14159](/space/show?uid=23297) 天啊,看不懂
by Achiles @ 2019-02-15 21:49:11


| 下一页