Skip to content

Instantly share code, notes, and snippets.

@uni745e
uni745e / renderDOMTree.js
Created May 10, 2019 06:05
renderDOMTree
function renderDOMTree(node, level = 0) {
if (node.tagName) {
console.log(`${'\t'.repeat(level)}${node.tagName}`);
}
node.childNodes.forEach(childNode => {
renderDOMTree(childNode, level + 1);
});
}
@uni745e
uni745e / arc021_c.py
Last active November 28, 2018 02:00
ARC021 C - 増築王高橋君
# coding:utf-8
import sys
input = sys.stdin.readline
def inpl(): return list(map(int, input().split()))
K = int(input())
N = int(input())
src = []
s = input()
ans = 700
for c in s:
if c == 'o': ans += 100
print(ans)
@uni745e
uni745e / agc001_a.py
Created July 17, 2018 14:48
AtCoder agc001
n = int(input())
L = list(map(int, input().split()))
L.sort()
ans = 0
for i in range(0,2*n,2):
ans += min(L[i], L[i+1])
print(ans)
@uni745e
uni745e / abc093_a.py
Last active July 17, 2018 14:48
AtCoder abc093
S = input()
ABC = 'abc'
ans = 'No'
for i in range(3):
if(ABC[i] not in S): break
else: ans = 'Yes'
print(ans)