#include <bits/stdc++.h>
using namespace std;
int main()
{
return 0;
}
#include <bits/stdc++.h>
#define AKIOI ios::sync_with_stdio(false),cin.tie(nullptr),cout.tie(nullptr)
using namespace std;
int main()
{
AKIOI;
return 0;
}
#include <bits/stdc++.h>
#define int long long
#define AKIOI ios::sync_with_stdio(false),cin.tie(nullptr),cout.tie(nullptr)
using namespace std;
signed main()
{
AKIOI;
return 0;
}
#include <bits/stdc++.h>
#define AKIOI ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr)
#define push_back emplace_back
#define int long long
#define endl "\n"
using namespace std;
signed main() {
AKIOI;
return 0;
}
#include <bits/stdc++.h>
#define AKIOI ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr)
#define push_back emplace_back
#define int long long
#define endl "\n"
using namespace std;
inline int read() {
int k = 0, f = 1;
char c = getchar();
while(c < '0' || c > '9') {
if(c == '-') f = -1;
c = getchar();
}
while(c >= '0' && c <= '9') k = k * 10 + c-'0',c = getchar();
return k * f;
}
inline void write(int x) {
if(x < 0) putchar('-'), x = -x;
if(x < 10) putchar(x + '0');
else write(x / 10), putchar(x % 10 + '0');
}
signed main() {
AKIOI;
return 0;
}
下方未背
超级快读1.0
#include <bits/stdc++.h>
#define AKIOI ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr)
#define push_back emplace_back
#define int long long
#define endl "\n"
using namespace std;
template<typename Tp> inline void read(Tp & x) {
x = 0;
register bool z = true;
register char c = getchar();
for(; !isdigit(c); c = getchar()) if(c == '-') z = 0;
for(; isdigit(c); c = getchar()) x = (x << 1) + (x << 3) + (c ^ 48);
x = (z ? x : ~x + 1);
}
template<typename T,typename ...Tp> inline void read(T &x, Tp &...y) {
read(x);
read(y...);
}
template<typename Tp> inline void wt(Tp x) {
if(x > 9) wt(x / 10);
putchar((x % 10) + '0');
}
template<typename Tp> inline void write(Tp x) {
if(x < 0) putchar('-'), x = ~x + 1;
wt(x);
}
template<typename T,typename ...Tp> inline void write(T x, Tp ...y) {
write(x);
putchar(' ');
write(y...);
}
//read(n) = cin >> n
//write(n) = cout << n
signed main() {
AKIOI;
return 0;
}
2.0
#include <bits/stdc++.h>
#define AKIOI ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr)
#define push_back emplace_back
#define int long long
#define endl "\n"
#ifdef __linux__
#define gc getchar_unlocked
#define pc putchar_unlocked
#else
#define gc _getchar_nolock
#define pc _putchar_nolock
#endif
using namespace std;
inline bool blank(const char x) { return !(x ^ 32) || !(x ^ 10) || !(x ^ 13) || !(x ^ 9); }
template<typename Tp> inline void read(Tp &x) {
x = 0;
register bool z = true;
register char a = gc();
for(; !isdigit(a); a = gc()) if(a == '-') z = false;
for(; isdigit(a); a =gc()) x = (x << 1) + (x << 3) + (a ^ 48);
x=(z ? x : ~x + 1);
}
inline void read(double &x) { x = 0.0; register bool z = true; register double y = 0.1; register char a = gc(); for(; !isdigit(a); a = gc()) if(a == '-') z = false; for(; isdigit(a); a = gc()) x = x * 10 + (a ^ 48); if(a != '.') return x = z ? x : -x, void(); for(a = gc(); isdigit(a); a = gc(), y /= 10) x += y * (a ^ 48); x=(z ? x : -x); }
inline void read(char &x) { for(x = gc(); blank(x) && (x ^ -1); x = gc()); }
inline void read(char *x) { register char a = gc(); for(; blank(a) && (a ^ -1); a = gc()); for(; !blank(a) && (a ^ -1); a = gc()) *x++ = a; *x = 0; }
inline void read(string &x) { x = ""; register char a = gc(); for(; blank(a) && (a ^ -1); a = gc()); for(; !blank(a) && (a ^ -1); a = gc()) x += a; }
template<typename T,typename ...Tp> inline void read(T &x, Tp &...y) { read(x), read(y...); }
template<typename Tp> inline void write(Tp x) { if(!x) return pc(48), void(); if(x < 0) pc('-'), x = ~x + 1; register int len = 0; register char tmp[64]; for(; x; x /= 10) tmp[++ len] = x % 10 + 48;while(len) pc(tmp[len --]); }
inline void write(const double x) { register int a = 6; register double b = x, c = b; if(b < 0) pc('-'), b = -b, c = -c; register double y = 5 * powl(10, -a-1); b += y, c += y; register int len = 0; register char tmp[64]; if(b < 1) pc(48); else for(; b >= 1; b /= 10) tmp[++ len] = floor(b) - floor(b / 10) * 10 + 48; while(len) pc(tmp[len --]); pc('.'); for(c *= 10; a; a--, c *= 10) pc(floor(c) - floor(c / 10) * 10 + 48); }
inline void write(const pair<int, double>x) { register int a = x.first; if(a < 7) { register double b = x.second, c = b; if(b < 0) pc('-'), b = -b, c = -c; register double y = 5 * powl(10, -a-1); b += y, c += y; register int len = 0; register char tmp[64]; if(b < 1) pc(48); else for(; b >= 1; b /= 10) tmp[++ len] = floor(b) - floor(b / 10) * 10 + 48; while(len) pc(tmp[len --]); a && (pc('.')); for(c *= 10; a; a --,c *= 10) pc(floor(c) - floor(c / 10) * 10 + 48); } else cout<<fixed<<setprecision(a)<<x.second; }
inline void write(const char x) { pc(x); }
inline void write(const bool x) { pc(x ? 49 : 48); }
inline void write(char *x) { fputs(x, stdout); }
inline void write(const char *x) { fputs(x,stdout); }
inline void write(const string &x) { fputs(x.c_str(),stdout); }
template<typename T,typename ...Tp> inline void write(T x,Tp ...y) { write(x),write(y...); }
signed main() {
AKIOI;
return 0;
}
文件版
#include <bits/stdc++.h>
#define AKIOI ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr)
#define push_back emplace_back
#define int long long
#define endl "\n"
#define File(x) freopen(x".in", "r", stdin); freopen(x".out", "w", stdout)
#ifdef __linux__
#define gc getchar_unlocked
#define pc putchar_unlocked
#else
#define gc _getchar_nolock
#define pc _putchar_nolock
#endif
using namespace std;
inline bool blank(const char x) { return !(x ^ 32) || !(x ^ 10) || !(x ^ 13) || !(x ^ 9); }
template<typename Tp> inline void read(Tp &x) {
x = 0;
register bool z = true;
register char a = gc();
for(; !isdigit(a); a = gc()) if(a == '-') z = false;
for(; isdigit(a); a =gc()) x = (x << 1) + (x << 3) + (a ^ 48);
x=(z ? x : ~x + 1);
}
inline void read(double &x) { x = 0.0; register bool z = true; register double y = 0.1; register char a = gc(); for(; !isdigit(a); a = gc()) if(a == '-') z = false; for(; isdigit(a); a = gc()) x = x * 10 + (a ^ 48); if(a != '.') return x = z ? x : -x, void(); for(a = gc(); isdigit(a); a = gc(), y /= 10) x += y * (a ^ 48); x=(z ? x : -x); }
inline void read(char &x) { for(x = gc(); blank(x) && (x ^ -1); x = gc()); }
inline void read(char *x) { register char a = gc(); for(; blank(a) && (a ^ -1); a = gc()); for(; !blank(a) && (a ^ -1); a = gc()) *x++ = a; *x = 0; }
inline void read(string &x) { x = ""; register char a = gc(); for(; blank(a) && (a ^ -1); a = gc()); for(; !blank(a) && (a ^ -1); a = gc()) x += a; }
template<typename T,typename ...Tp> inline void read(T &x, Tp &...y) { read(x), read(y...); }
template<typename Tp> inline void write(Tp x) { if(!x) return pc(48), void(); if(x < 0) pc('-'), x = ~x + 1; register int len = 0; register char tmp[64]; for(; x; x /= 10) tmp[++ len] = x % 10 + 48;while(len) pc(tmp[len --]); }
inline void write(const double x) { register int a = 6; register double b = x, c = b; if(b < 0) pc('-'), b = -b, c = -c; register double y = 5 * powl(10, -a-1); b += y, c += y; register int len = 0; register char tmp[64]; if(b < 1) pc(48); else for(; b >= 1; b /= 10) tmp[++ len] = floor(b) - floor(b / 10) * 10 + 48; while(len) pc(tmp[len --]); pc('.'); for(c *= 10; a; a--, c *= 10) pc(floor(c) - floor(c / 10) * 10 + 48); }
inline void write(const pair<int, double>x) { register int a = x.first; if(a < 7) { register double b = x.second, c = b; if(b < 0) pc('-'), b = -b, c = -c; register double y = 5 * powl(10, -a-1); b += y, c += y; register int len = 0; register char tmp[64]; if(b < 1) pc(48); else for(; b >= 1; b /= 10) tmp[++ len] = floor(b) - floor(b / 10) * 10 + 48; while(len) pc(tmp[len --]); a && (pc('.')); for(c *= 10; a; a --,c *= 10) pc(floor(c) - floor(c / 10) * 10 + 48); } else cout<<fixed<<setprecision(a)<<x.second; }
inline void write(const char x) { pc(x); }
inline void write(const bool x) { pc(x ? 49 : 48); }
inline void write(char *x) { fputs(x, stdout); }
inline void write(const char *x) { fputs(x,stdout); }
inline void write(const string &x) { fputs(x.c_str(),stdout); }
template<typename T,typename ...Tp> inline void write(T x,Tp ...y) { write(x),write(y...); }
signed main() {
AKIOI;
//File("fasterreadwrite");
return 0;
}