get total count of specific digit(0~9) from 1 to number
https://www.acmicpc.net/problem/14912
Example
> getDigitTotal(10, 1)
> 2
// 1 = 1
package com.example.rsa; | |
import javax.crypto.BadPaddingException; | |
import javax.crypto.Cipher; | |
import javax.crypto.IllegalBlockSizeException; | |
import javax.crypto.NoSuchPaddingException; | |
import java.nio.charset.StandardCharsets; | |
import java.security.*; | |
import java.security.spec.InvalidKeySpecException; | |
import java.security.spec.PKCS8EncodedKeySpec; |
// Base Size | |
@base-font-size: 15; | |
@user-font-size: (1.1 * $USER_FONT_SIZE); | |
@ui-scale: @user-font-size / @base-font-size; | |
// UI Colors | |
@tint-color: rgb(70%,84%,99%); | |
@background-color: rgb(100%,100%,100%); |
get total count of specific digit(0~9) from 1 to number
https://www.acmicpc.net/problem/14912
Example
> getDigitTotal(10, 1)
> 2
// 1 = 1
publi class Solution { | |
public int[] solution(int n, int m) { | |
int[] answer = {gcd(n, m), lcm(n, m)}; | |
return answer; | |
} | |
private int gcd(int a, int b) { // 최대공약수 | |
while (b > 0) { | |
int tmp = a; | |
a = b; |
FROM jenkins/jenkins:latest | |
LABEL maintainer="Yeongjun.kim <[email protected]>" | |
LABEL title="Docker with Ansible" | |
# https://github.com/ansible/ansible/releases | |
ARG ansible_version=2.8.6 | |
USER root | |
RUN echo ${ansible_version} | |
RUN cd /root && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ |
// import React, { useState } from "react" | |
const Item = { KEY1: 0, KEY2: 1 } | |
const App = props => { | |
const [items, setItems]=React.useState({ | |
all: false, | |
checked: new Set(), | |
}); | |
#!/usr/bin/env bash | |
# Set current branch to variable | |
WORKING_BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
# Check branch name | |
if [ -z "$1" ]; then | |
echo "usage: git-finish <refspec>" | |
exit 1 | |
fi |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.concurrent.CompletableFuture; | |
import java.util.stream.Stream; | |
import org.junit.Test; | |
import org.slf4j.Logger; | |
import org.springframework.web.client.AsyncRestTemplate; | |
import com.fasterxml.jackson.annotation.JsonUnwrapped; |
https://github.com/pqrs-org/KE-complex_modifications#import-file-from-another-site
karabiner://karabiner/assets/complex_modifications/import?url=
# BTTShortcutModifierKeys | |
# https://community.folivora.ai/t/could-you-provide-a-formula-for-determining-keyboard-shortcuts-values/3606 | |
1048576 cmd | |
131072 shift | |
1179648 shift+cmd | |
1441792 shift+control+cmd | |
524288 opt | |
655360 opt+shift | |
1703936 opt+shift+cmd | |
1572864 opt+cmd |