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
| #include <stdio.h> | |
| // 1: 1 | |
| // 2: 4 (+3) | |
| // 3: 9 (+5) | |
| // 4: 16 (+7) | |
| int n; | |
| int arr[405][900]; | |
| int sum[405][900]; |
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 test_extract(): | |
| res = extract('matt is the best school in korea') | |
| assert res == 'MICLI', res | |
| # 첫 번째 규칙: 보통 큰 숫자가 왼쪽 > 작은 숫자 오른쪽, | |
| # 숫자의 값을 더한 값이 총합이다. | |
| def test_passes_rule1(): | |
| r1, _ = rule1('MICLI') | |
| assert r1 == False |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <definitions xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/" | |
| xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" | |
| xmlns="http://schemas.xmlsoap.org/wsdl/" | |
| xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" | |
| xmlns:s="http://www.w3.org/2001/XMLSchema" | |
| xmlns:tns="http://api.nhic.or.kr/services/nhic" | |
| xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" | |
| xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/" | |
| xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" |
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
| import bodyParser from "body-parser"; | |
| import express from "express"; | |
| import passport from "passport"; | |
| import localPass from "passport-local"; | |
| import jwtPass from "passport-jwt"; | |
| import jwt from "jsonwebtoken"; | |
| const app = express(); | |
| app.use(bodyParser.json()); |
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
| const fs = require("fs"); | |
| const input = fs.readFileSync("dev/stdin").toString(); | |
| const lines = input.trim().split("\n"); | |
| const N = Number(lines[0]); | |
| const SWITCH = [undefined].concat(lines[1].trim().split(" ").map(Number)); | |
| const M = Number(lines[2]); | |
| for (let l = 3; l < 3 + M; 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
| const fs = require('fs'); | |
| const input = fs.readFileSync('/dev/stdin').toString() | |
| const lines = input.split("\n"); | |
| const [n, ...twoNumbers] = lines; | |
| twoNumbers.map(twoString => { | |
| const [a, b] = twoString.split(" ").map((num) => parseInt(num)); | |
| for( let i = 1 ; i <= b ; i ++ ){ | |
| if( a * i % b == 0 ) { | |
| console.log(a*i); |
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
| let fs = require("fs"); | |
| let line = fs.readFileSync("/dev/stdin").toString(); // line "3 5" | |
| let numbers = line.split(" "); // ["3", "5"] | |
| let a = parseInt(numbers[0]); // 3 | |
| let b = parseInt(numbers[1]); // 5 | |
| console.log(a + b); | |
| // var input = fs.readFileSync("/dev/stdin").toString().split(" "); |
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
| # 1 객체 생성 확인 | |
| try: | |
| my = Account("제한재", "2231") | |
| print("채점 #1 : 객체 생성 ✅") | |
| except: | |
| print("채점 #1 : 객체 생성 ❌") | |
| # 2 통장 번호 확인 | |
| try: | |
| qid = my.getId() |
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
| tap "homebrew/bundle" | |
| tap "homebrew/cask" | |
| tap "homebrew/core" | |
| brew "zsh-autosuggestions" | |
| brew "zsh-syntax-highlighting" | |
| brew "python3" | |
| brew "node" | |
| brew "eza" | |
| brew "git" | |
| brew "openjdk" |
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
| export const location1 = [ | |
| "서울", | |
| "경기", | |
| "인천", | |
| "강원", | |
| "경남", | |
| "경북", | |
| "광주", | |
| "대구", | |
| "대전", |
NewerOlder