Skip to content

Instantly share code, notes, and snippets.

View hareeen's full-sized avatar

Suyoung Hwang hareeen

  • Yonsei U
  • Seoul, South Korea
  • 14:30 (UTC +09:00)
  • X @_hareeen
View GitHub Profile
@hareeen
hareeen / config.json
Last active May 16, 2024 16:27
Reminder
{
"reminders": [
{
"before": 43200,
"message": "12시간 뒤부터 공대 시간입니다! 늦지 않게 접속 부탁드려요!"
},
{
"before": 7200,
"message": "2시간 뒤부터 공대 시간입니다! 늦지 않게 접속 부탁드려요!"
},
@hareeen
hareeen / main.rs
Last active February 23, 2024 13:55
Rust I/O template for competitive programming
// ✦☁️
use std::{
cell::RefCell,
fmt::Debug,
io::{stdin, stdout, BufRead, BufReader, BufWriter, StdinLock, StdoutLock, Write},
mem::transmute,
str::FromStr,
str::{from_utf8_unchecked, SplitWhitespace},
};
@hareeen
hareeen / stdc++.h
Last active September 5, 2023 06:45
mac clang++-compatible stdc++.h (for Competitive Programming, in /Library/Developer/CommandLineTools/usr/include/bits)
// C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2022 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.
@hareeen
hareeen / main.cc
Created January 3, 2020 15:10
BOJ 11385 WIP
#include <bits/stdc++.h>
using namespace std;
using i64 = long long;
using d64 = long double;
using pi = pair<int, int>;
using pli = pair<i64, i64>;
using ti = tuple<int, int, int>;
using tli = tuple<i64, i64, i64>;
@hareeen
hareeen / main.py
Last active December 29, 2019 17:47
twitterSNA
import requests
import json
import time
import random
authorizationHeader = {
'authorization': 'Bearer AAAAAAAAAAAAAAAAAAAAADgkAAEAAAAAXGrt0MHcLgyGKYDatrSdzuxjtnk%3DqMteCixTC3Grr2hU9YaSpWad2MuFs3shkk93Ey3pJRME997Yd9'}
id_set = set()
@hareeen
hareeen / cloudSettings
Last active October 25, 2019 15:08
vscode-settings
{"lastUpload":"2019-10-25T15:07:58.298Z","extensionVersion":"v3.4.3"}
@hareeen
hareeen / FuchsiaDimgreyHound.py
Created January 10, 2018 12:54
FuchsiaDimgreyHound created by anonymous - https://repl.it/repls/FuchsiaDimgreyHound
import math
a=dict()
b=dict()
def hello(n,k):
st=[]
for i in range(1,min([2*k+1,n+1])):
st.append((n-i, i))
return st