跳到正文

剪贴板

剪贴板 czyal8wl

原文
剪贴板信息

剪贴板信息

收录
更新

缺省源备份

编译选项-static -std=c++20 -O2 -Wall -lm

C++
#include <iostream>
#include <cstdio>
#include <queue>
#include <vector>
#include <cstring>
#include <algorithm>
#include <string>
#include <stack>

#define int long long
#define function auto
#define rop(a,b,c) for(auto a = b; a < c; ++ a)
#define por(a,b,c) for(auto a = b; a > c; -- a)
#define rep(a,b,c) for(auto a = b; a <= c; ++ a)
#define per(a,b,c) for(auto a = b; a >= c; -- a)
#define resetIO(str) \
		freopen(#str".in", "r", stdin),\
		freopen(#str".out", "w", stdout)

typedef long long LL;

constexpr int N = 1e6 + 10;

namespace Space {
  	function max = [](int a, int b, int c) -> int {auto k = a > b ? a : b; return k > c ? k : c;};
	function min = [](int a, int b, int c) -> int {auto k = a < b ? a : b; return k < c ? k : c;};
    template < typename _Tp > inline function read(_Tp& t) -> void {int f = 0, ch = getchar (); t = 0; while (!isdigit (ch)) f |= (ch == '-'), ch = getchar (); do {t = (t << 1) + (t << 3) + (ch & 15); ch = getchar ();} while (isdigit(ch)); t = f ? -t : t;}
    template < typename _Tp, typename... _Args > inline function read(_Tp& t, _Args&... args) -> void {read(t); read(args...);}
    class IO {
	public:
		template < typename _Tp > inline function write(_Tp a) -> void {if (a > 0) this -> write (a / 10);putchar (a % 10 - '0');}
		template < typename _Tp > IO operator << (_Tp a ) {if (a < 0) {putchar ('-'); a = -a;} this -> write (a); return *this;}
	    template < typename _Tp > IO operator >> (_Tp& t) {int f = 1, ch = getchar(); t = 0; while (!isdigit(ch)) f |= ch == '-', ch = getchar (); do {t = (t << 1) + (t << 3) + (ch ^ '0'); ch = getchar ();} while (isdigit(ch)); t *= f; return *this;}
	    IO operator << (char a) const {putchar (a); return *this;}
	    IO operator >> (char a) const {a=getchar(); return *this;}
	}io;
} using namespace Space;

template < typename _Tp, typename... _Up >
class Solve {
private:
	inline function
	function1() -> void {}
public:
	inline function
	sol() -> void {}
}; Solve < int, void > T;

signed main() {
	T.sol();
}