Skip to content

Instantly share code, notes, and snippets.

View ChiantiScarlett's full-sized avatar

Chianti Scarlett ChiantiScarlett

View GitHub Profile
#include <cstdio>
int main()
{
int N, M;
char name[20];
char **N_names = new char *[500000];
scanf("%d", &N);
int main()
{
int N, M;
char name[20];
char **N_names = new char *[500000];
scanf("%d", &N);
@ChiantiScarlett
ChiantiScarlett / 맞왜틀-2491.py
Created November 23, 2020 15:10
맞왜틀-2491.py
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:
def main():
words = list(input().upper())
counter = [0]*26
# 단어 개수 카운팅:
for word in words:
counter[ord(word)-65] += 1
# 인덱스와 역순 인덱스의 합이 25가 아니면, 중복이 존재한다는 뜻이므로 '?' 출력:
max_num = max(counter)
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):
#include <cstdio>
#include <vector>
using namespace std;
void repeatedPermutation(vector<int> partial, vector<int> &number, int &N,
int &M);
int main() {
// read N, M :
#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);
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: "제품 업데이트" });
};
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 = {
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] });