Only tested in CP-949.
- This will only work on the codepages below.
- Windows codepages: 874, 1250-1258
- IBM codepages: 437, 737, 775, 808, 850, 852, 855-858, 860-866, 869, 922, 1046, 1124, 1125, 1129, 1133, 1161-116
- Multi-byte: 932, 936, 949, 950
// ==UserScript== | |
// @name ASTx2 Emulator | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author @BawAppie | |
// @match https://*/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=ahnlab.com | |
// @grant none | |
// ==/UserScript== |
// ==UserScript== | |
// @name Baeggro - BOJ Result Offender | |
// @match https://www.acmicpc.net/status* | |
// @grant none | |
// @version 4.0 | |
// @author kiwiyou <kiwiyou.dev@gmail.com>, RanolP <public.ranolp@gmail.com> | |
// @downloadURL https://gist.githubusercontent.com/kiwiyou/ffb8beab11cbc64cb696639fd0c984c7/raw/baeggro.js | |
// @updateURL https://gist.githubusercontent.com/kiwiyou/ffb8beab11cbc64cb696639fd0c984c7/raw/baeggro.js | |
// ==/UserScript== |
[package] | |
name = "ugen" | |
version = "0.1.0" | |
authors = ["kiwiyou <kiwiyou.dev@gmail.com>"] | |
edition = "2018" | |
[dependencies] | |
rand = "0.7" | |
clap = { git = "https://github.com/clap-rs/clap/" } |
/// Recursive | |
fn gcd<T>(a: T, b: T) -> T where T: std::ops::Rem<Output = T> + Eq + From<u8> + Copy { | |
if b == T::from(0u8) { | |
a | |
} else { | |
gcd(b, a % b) | |
} | |
} | |
/// Iterated |
Only tested in CP-949.
//! This is free and unencumbered software released into the public domain. | |
//! | |
//! Anyone is free to copy, modify, publish, use, compile, sell, or | |
//! distribute this software, either in source code form or as a compiled | |
//! binary, for any purpose, commercial or non-commercial, and by any | |
//! means. | |
//! | |
//! In jurisdictions that recognize copyright laws, the author or authors | |
//! of this software dedicate any and all copyright interest in the | |
//! software to the public domain. We make this dedication for the benefit |
const int mod = 998244353; | |
using lint = long long; | |
lint ipow(lint x, lint p){ | |
lint ret = 1, piv = x; | |
while(p){ | |
if(p & 1) ret = ret * piv % mod; | |
piv = piv * piv % mod; | |
p >>= 1; | |
} | |
return ret; |
setInterval((_ = Date.now() / 30 % 360) => | |
console.clear() || console.log('%c[Warning]', ` | |
font-size: 500%; | |
font-weight: bold; | |
color: hsl(${_}, 100%, 90%); | |
background-color: hsl(${_}, 100%, 30%); | |
text-shadow: .08em .08em hsl(${_}, 100%, 20%)`), 75) |