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
text-shadow: -1px -1px 0 var(--color-text-primary),1px -1px 0 var(--color-text-primary),-1px 1px 0 var(--color-text-primary),1px 1px 0 var(--color-text-primary) |
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
def pow_mod(n,p,mod): | |
ans = 1 | |
dp = [n%mod]+[0]*(ceil(log2(p))+1) | |
for i in range(0,ceil(log2(p))+1): | |
dp[i+1] = (dp[i]**2)%mod | |
h = (p & (1<<i)) >> i | |
if h == 1: | |
ans *= dp[i] | |
ans = (ans%mod) | |
return ans%mod |
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
cmake_minimum_required(VERSION 3.26) | |
project(executable) | |
find_package(glfw3 REQUIRED) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17") # | |
#set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++") # |
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
function invert(bin){ | |
var a = parseInt(bin,2); | |
var b = String(bin).split('').length; | |
var c = []; | |
for(var i = 0;i<b;i++){ | |
c.push(1); | |
} | |
c = c.join(''); | |
var d = parseInt(c,2); | |
return (a^d).toString(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
var Time = {}; | |
Time.toTimestamp = function(s){ | |
var h = Math.floor(s/3600); | |
var m = Math.floor((s-(h*3600))/60); | |
var secs = Math.floor((s-(h*3600))-(60*m)); | |
var milis = s-((h*3600)+(m*60)+secs); | |
milis = Math.floor(milis*1000); | |
h = String(h); | |
m = String(m); |