This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Polygon Tests Bulk Downloader | |
// @match https://polygon.codeforces.com/tests?action=preview* | |
// @downloadURL https://gist.githubusercontent.com/kiwiyou/bc89e3dbff247619f92a70f654d6dd1f/raw/script.js | |
// @grant none | |
// @version 1.0 | |
// @author kiwiyou <[email protected]> | |
// ==/UserScript== | |
import("https://www.unpkg.com/@zip.js/zip.js@2/index.min.js").then(async ({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Text Converter | |
// @namespace Violentmonkey Scripts | |
// @match http*://*/* | |
// @grant none | |
// @version 1.0 | |
// @author kiwiyou <[email protected]> | |
// @description 1/28/2025, 10:19:15 PM | |
// @require https://unpkg.com/[email protected]/src/main.js | |
// @homepageURL https://gist.github.com/kiwiyou/34cda490e64c1fde300bec09c3e0c673 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from array import array | |
class Graph: | |
def __init__(self, N): | |
self.h = array('I', [1 << 30]) * N | |
self.l = array('I') | |
self.e = array('I') | |
def connect(self, u, v): | |
p = self.h[u] | |
self.h[u] = len(self.l) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::io::*; | |
fn solve() { | |
let mut reader = Reader::new(); | |
let t = reader.read(); | |
for _ in 0..t { | |
let a: i32 = reader.read(); | |
let b: i32 = reader.read(); | |
println!("{}", a + b); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name BOJ Group Practice Tier | |
// @namespace Violentmonkey Scripts | |
// @match https://www.acmicpc.net/group/practice/view/* | |
// @grant GM_xmlhttpRequest | |
// @version 1.0 | |
// @author kiwiyou | |
// ==/UserScript== | |
const problemAnchors = document.querySelectorAll('a[href^="/problem/"]'); | |
const problemMap = new Map(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait SplayOp { | |
type T; | |
fn pull(_t: &mut SplayTree<Self>, _u: usize) {} | |
fn push(_t: &mut SplayTree<Self>, _u: usize) {} | |
} | |
struct SplayNode<T> { | |
v: T, | |
c: [u32; 2], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait LinkCutOp { | |
type T; | |
fn pull(_t: &mut LinkCutTree<Self>, _u: usize) {} | |
fn push(_t: &mut LinkCutTree<Self>, _u: usize) {} | |
} | |
struct LinkCutNode<T> { | |
v: T, | |
c: [u32; 2], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use core::mem::MaybeUninit; | |
use alloc::collections::VecDeque; | |
use basm::io; | |
const D: usize = 11; | |
pub fn main() { | |
let mut reader = io::Reader::<{ 1 << 15 }>::new(); | |
let mut writer = io::Writer::<32>::new(); | |
let mut tomato: [u8; (1_000_000 + 7) / 8] = unsafe { MaybeUninit::uninit().assume_init() }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Naver YetHangul to Unicode | |
// @namespace Violentmonkey Scripts | |
// @match https://ko.dict.naver.com/ | |
// @grant none | |
// @version 1.0 | |
// @author kiwiyou <[email protected]> | |
// ==/UserScript== | |
new MutationObserver(e => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Baeggro - BOJ Result Offender | |
// @match https://www.acmicpc.net/status* | |
// @grant none | |
// @version 4.0 | |
// @author kiwiyou <[email protected]>, RanolP <[email protected]> | |
// @downloadURL https://gist.githubusercontent.com/kiwiyou/ffb8beab11cbc64cb696639fd0c984c7/raw/baeggro.js | |
// @updateURL https://gist.githubusercontent.com/kiwiyou/ffb8beab11cbc64cb696639fd0c984c7/raw/baeggro.js | |
// ==/UserScript== |