Skip to content

Instantly share code, notes, and snippets.

View hanjae-jea's full-sized avatar

Hanjae hanjae-jea

View GitHub Profile
# 1 객체 생성 확인
try:
my = Account("제한재", "2231")
print("채점 #1 : 객체 생성 ✅")
except:
print("채점 #1 : 객체 생성 ❌")
# 2 통장 번호 확인
try:
qid = my.getId()
@hanjae-jea
hanjae-jea / 02.27.js
Created February 27, 2023 13:04
02.27
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(" ");
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);
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++) {
@hanjae-jea
hanjae-jea / login.mjs
Created August 1, 2023 08:53
2023 08 01
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());
<?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/"