This file contains 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 <cstdio> | |
int main() | |
{ | |
int N, M; | |
char name[20]; | |
char **N_names = new char *[500000]; | |
scanf("%d", &N); |
This file contains 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
int main() | |
{ | |
int N, M; | |
char name[20]; | |
char **N_names = new char *[500000]; | |
scanf("%d", &N); |
This file contains 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 main(): | |
N = int(input()) | |
number = list(map(int, input().split())) | |
ascending_length = [0]*N | |
descending_length = [0]*N | |
ascending_length[0] = 1 | |
for i in range(1, N): | |
# Ascending: |
This file contains 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 main(): | |
words = list(input().upper()) | |
counter = [0]*26 | |
# 단어 개수 카운팅: | |
for word in words: | |
counter[ord(word)-65] += 1 | |
# 인덱스와 역순 인덱스의 합이 25가 아니면, 중복이 존재한다는 뜻이므로 '?' 출력: | |
max_num = max(counter) |
This file contains 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 pandas as pd | |
from openpyxl import load_workbook | |
from datetime import datetime | |
def convert_date(excel_date): | |
return datetime.fromordinal(datetime(1900, 1, 1).toordinal() + excel_date - 2) | |
def generate_QTR(pd_date): |
This file contains 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 <cstdio> | |
#include <vector> | |
using namespace std; | |
void repeatedPermutation(vector<int> partial, vector<int> &number, int &N, | |
int &M); | |
int main() { | |
// read N, M : |
This file contains 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 <cstdio> | |
#include <vector> | |
using namespace std; | |
void updateMax(int &max, int value) { | |
if (max < value) | |
max = value; | |
} | |
void typeA1(int N, int M, vector<vector<int>> &arr, int &max); |
This file contains 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 React, { Component, createRef } from "react"; | |
import { C } from "../core"; | |
import { connect } from "../../../services"; | |
import axios from "axios"; | |
class UpdateBasicInfo extends C.Component { | |
config = () => { | |
this.setState({ title: "제품 업데이트" }); | |
}; |
This file contains 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 React, { Component as ReactComponent } from "react"; | |
import styled from "styled-components"; | |
import { C } from "../"; | |
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | |
import { faKey, faCode } from "@fortawesome/free-solid-svg-icons"; | |
export default class Component extends ReactComponent { | |
constructor(props) { | |
super(props); | |
this.state = { |
This file contains 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 React, { Component } from "react"; | |
import styled from "styled-components"; | |
class KeyInputList extends Component { | |
state = {}; | |
componentDidUpdate(prevProps) { | |
if (this.props !== prevProps) { | |
/** Update Keys: */ | |
for (const key of Object.keys(this.props.data)) { | |
this.setState({ [key]: this.props.data[key] }); |
NewerOlder