From Bloor C.I., University of Waterloo
About
//Thanks for the lesson from Kirito, '\n' over std::endl, except some edge cases(interactive question)
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
//MACRO flag to detect if on DMOJ, credit to Wesley
#ifdef ONLINE_JUDGE
//do something
#endif
//Fast IO alternative than DMOJ's scan, requires C++20+
//not portable
#if defined _WIN32 || defined _WIN64
inline char getchar_unlocked() { return static_cast<char>(_getchar_nolock()); }
#endif
template <std::signed_integral T>
T Read()
{
T x; bool neg = false; char c{};
do { c = getchar_unlocked(); if (c == '-') neg = true; } while (c < '0');
for (x = c - '0'; '0' <= (c = getchar_unlocked()); x = (x << 3) + (x << 1) + c - '0') {}
return neg ? -x : x;
}
template <std::unsigned_integral T>
T Read()
{
T x; char c{};
do { c = getchar_unlocked(); } while (c < '0');
for (x = c - '0'; '0' <= (c = getchar_unlocked()); x = (x << 3) + (x << 1) + c - '0');
return x;
}
//some temporary variable names
srce (source)
dest (destination)
first, last (denote range [a, b) )
begin, end (denote range [a, b) )
i, j, k (index for nested loops)
temp (swapping variable)
prev, curr, next(nxt) (holding objects/variables)
arr (acronym of array)
vec (vector)
lst, ls (list)
mp (map, hashmap)
addr (address)
ptr (pointer)
fn (function)
Points:
Dec. 4, 2020, First 10 points question.
Jan. 8, 2021, Took over Tyler with 0.? points.
Jan. 12, 2021, First 12 points question.
Jan. 15, 2021, First 15 points question. (thx Balint for the free 15 points)
Mar. 17, 2021, DMOJ avalanche (dropped from 300 points to 270)
Feb. 26, 2022, Back to 300 Points
Rating:
March 14, 2019, 4:00 p.m. Green Rating
January 25, 2021, 4:59 a.m. Blue Rating
Todo List:
Quine https://dmoj.ca/problem/quine
Difference Sorting https://dmoj.ca/problem/wac6p3
Bowling for Numbers https://dmoj.ca/problem/ccc07s5
Wireless https://dmoj.ca/problem/ccc09s5 Prefix to Postfix https://dmoj.ca/problem/ccc08j4