Skip to content

Instantly share code, notes, and snippets.

Luzhiled Luzhiled

Block or report user

Report or block Luzhiled

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View cpp-template.cpp
#include <bits/stdc++.h>
using namespace std;
// boku no template meisou now
// clang-format off
// #define fs first
// #define sc second
// #define pb emplace_back
// #define mp make_pair
View template.cpp
#include <bits/stdc++.h>
using namespace std;
#define fs first
#define sc second
#define pb emplace_back
#define mp make_pair
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
@Luzhiled
Luzhiled / ARC018-B.cpp
Created Jun 28, 2017
ARC018-B 格子点と整数
View ARC018-B.cpp
#include <bits/stdc++.h>
using namespace std;
#define fs first
#define sc second
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define rep(i, n) for (int i = 0; i < n; ++i)
#define pb emplace_back
View ARC075-E.cpp
#include <bits/stdc++.h>
using namespace std;
#define fs first
#define se second
#define all(v) v.begin(), v.end()
#define rep(i, n) for (int i = 0; i < n; ++i)
#define pb emplace_back
using pii = pair<int, int>;
View ARC075-D.cpp
#include <bits/stdc++.h>
using namespace std;
#define fs first
#define se second
#define all(v) v.begin(), v.end()
#define rep(i, n) for (int i = 0; i < n; ++i)
#define pb emplace_back
using pii = pair<int, int>;
View ARC075-C.cpp
#include <bits/stdc++.h>
using namespace std;
#define fs first
#define se second
#define all(v) v.begin(), v.end()
#define rep(i, n) for (int i = 0; i < n; ++i)
#define pb emplace_back
using pii = pair<int, int>;
View ABC063-B.cpp
#include <bits/stdc++.h>
using namespace std;
#define fs first
#define se second
#define all(v) v.begin(), v.end()
#define rep(i, n) for (int i = 0; i < n; ++i)
#define pb emplace_back
using pii = pair<int, int>;
View ABC063-A.cpp
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a + b >= 10) {
cout << "error" << endl;
}
@Luzhiled
Luzhiled / .vimrc
Last active Dec 17, 2016
JOI本番で使用する予定のvimrcです
View .vimrc
set nu ts=2 sw=2 et cin sta
sy on
ima <C-]> <esc>
@Luzhiled
Luzhiled / math.cpp
Created Dec 15, 2016
sin, cosの実装(有効数字およそ15桁)
View math.cpp
#include <iostream>
using namespace std;
long double abs(long double x)
{
return (x < 0.0 ? -x : x);
}
long double sqrt(long double x)
{
You can’t perform that action at this time.