高级算法A+B终于被人用996行代码做出来了

ykj12 2022-05-23 20:15:04 3

信息学界奇迹

#pragma GCC diagnostic error "-std=c++11"
#pragma GCC target("avx")
#pragma GCC optimize(1)
#pragma GCC optimize(2)
#pragma GCC optimize(3)
#pragma GCC optimize("Ofast")
#pragma GCC optimize("inline")
#pragma GCC optimize("-fgcse")
#pragma GCC optimize("-fgcse-lm")
#pragma GCC optimize("-fipa-sra")
#pragma GCC optimize("-ftree-pre")
#pragma GCC optimize("-ftree-vrp")
#pragma GCC optimize("-fpeephole2")
#pragma GCC optimize("-ffast-math")
#pragma GCC optimize("-fsched-spec")
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("-falign-jumps")
#pragma GCC optimize("-falign-loops")
#pragma GCC optimize("-falign-labels")
#pragma GCC optimize("-fdevirtualize")
#pragma GCC optimize("-fcaller-saves")
#pragma GCC optimize("-fcrossjumping")
#pragma GCC optimize("-fthread-jumps")
#pragma GCC optimize("-funroll-loops")
#pragma GCC optimize("-fwhole-program")
#pragma GCC optimize("-freorder-blocks")
#pragma GCC optimize("-fschedule-insns")
#pragma GCC optimize("inline-functions")
#pragma GCC optimize("-ftree-tail-merge")
#pragma GCC optimize("-fschedule-insns2")
#pragma GCC optimize("-fstrict-aliasing")
#pragma GCC optimize("-fstrict-overflow")
#pragma GCC optimize("-falign-functions")
#pragma GCC optimize("-fcse-skip-blocks")
#pragma GCC optimize("-fcse-follow-jumps")
#pragma GCC optimize("-fsched-interblock")
#pragma GCC optimize("-fpartial-inlining")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("-freorder-functions")
#pragma GCC optimize("-findirect-inlining")
#pragma GCC optimize("-fhoist-adjacent-loads")
#pragma GCC optimize("-frerun-cse-after-loop")
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
#pragma GCC optimize("-ftree-switch-conversion")
#pragma GCC optimize("-foptimize-sibling-calls")
#pragma GCC optimize("-fexpensive-optimizations")
#pragma GCC optimize("-funsafe-loop-optimizations")
#pragma GCC optimize("inline-functions-called-once")
#pragma GCC optimize("-fdelete-null-pointer-checks")
#include <bits/stdc++.h>
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <complex>
#include <csignal>
#include <csetjmp>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <cwchar>
#include <cwctype>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#include <bits/c++config.h>
#include <bits/functexcept.h>
#include <bits/cpp_type_traits.h>
#include <ext/type_traits.h>
#include <ext/numeric_traits.h>
#include <bits/stl_pair.h>
#include <bits/stl_iterator_base_types.h>
#include <bits/stl_iterator_base_funcs.h>
#include <bits/stl_iterator.h>
#include <bits/concept_check.h>
#include <debug/debug.h>
#include <bits/move.h>
using namespace std;
int SB(int x) { return x; }
int sb(int x) { return x; }
int AcWing(int x) {
    return (x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x +
            x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x +
            x + x) /
           50;
}
int main() {
    unsigned long long a, b, c = 0, s = 0;
    cin >> a >> b;
    c = a + b;  //就是玩!!!
    s = a + b;
    c += 1e5;
    c += 1e9;
    c += 1;
    c -= 1e5;
    c -= 1e9;
    c -= 1;
    c += 999999999;
    c += 999999999;
    c -= 999999999;
    c -= 999999999;
    c *= 1;
    c -= SB(s);
    c += sb(s);
    c += AcWing(c);
    c /= 2;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    c = c;
    cout << c;
}
{{ vote && vote.total.up }}

共 8 条回复

jsq 蒟蒻

......

CPP 刷题王

依老臣look,此人乃世界神人者也

bc03 黄金三

。。。。。。。。。。。。。。

Eil5

..................

jianyuechen

...

ykj04 Hi

......

root 站长

真是个人才啊!

CPP 刷题王

。。。。。。