top of page

게시판 게시물
alexhwdo
2023년 6월 03일
In 소스 코드 제출
# def inter(a, b):
# if a[0] > b[0]:
# tmp = a
# a = b
# b = tmp
# if a[1] < b[0]:
# return 0
# elif a[1] == b[0]:
# return 1
# else:
# return 2
#_________________________
# while(1):
# if m >= 12:
# break
# tmp_m = m
# tmp_d = d
# garden()
# if tmp_m == m and tmp_d == d:
# flower_num = 0
# break
#__________________________
#
# x1_zero, y1_zero, x1_one, y1_one = map(int, input().split())
# x2_zero, y2_zero, x2_one, y2_one = map(int, input().split())
#
# x1 = [x1_zero, x1_one]
# x2 = [x2_zero, x2_one]
# y1 = [y1_zero, y1_one]
# y2 = [y2_zero, y2_one]
#
# ix = inter(x1, x2)
# iy = inter(y1, y2)
# if ix == 2 and iy == 2:
# print("FACE")
# elif (ix == 1 and iy == 2) or (ix == 2 and iy == 1):
# print("LINE")
# elif ix == 1 and iy == 1:
# print("POINT")
# else:
# print("NULL")
# x = []
# topping_cal = []
# ret = 0
# n = int(input())
# dough_price, topping_price = map(int, input().split())
# dough_cal = int(input())
#
# for i in range(n):
# x = int(input())
# topping_cal.append(x)
#
# topping_cal.sort()
# topping_cal.reverse()
# d_cal = dough_cal
# d_price = dough_price
# best_pizza = d_cal / d_price
#
#
# for cal in topping_cal:
#
# if best_pizza < (d_cal + cal) / (d_price + topping_price):
# d_cal += cal
# d_price += topping_price
# best_pizza = d_cal / d_price
#
# else:
# break
#
# print(int(best_pizza))
x = []
data = []
flower_num = 0
m = 3
d = 1
n = int(input())
for i in range(n):
x = input().split()
data.append(x)
for i in range(4*n):
print(flower_num)
# n, m = map(int, input().split())
# r = [["X"]*m]
# for i in range(n):
# r.append(list(input()))
# s, t = map(int, input().split())
#
#
# def check_in(n):
# max = 0
# for i in range(m):
# d = 0
# for j in range(n, t):
# if r[j][i] == 'O':
# d += 1
# else:
# break
# if max < d:
# max = d
# return max
#
#
# cnt = -1
# today = s
# while today < t:
# remain = check_in(today)
# if remain == 0:
# cnt = -1
# break
# cnt += 1
# today += remain
#
# print(cnt)
0
0
2
alexhwdo
2023년 5월 20일
In 소스 코드 제출
# def inter1(data_1, data_2):
# print("1", data_1, data_2)
# if data_1[0] > data_2[0]:
# print("inter1", data_1[0], data_2[0])
# tmp = data_1
# data_1 = data_2
# data_2 = tmp
# if data_1[1] < data_2[0]:
# print("1<")
# return 0
# elif data_1[1] == data_2[1]:
# print("1==")
# return 1
# else:
# print("1>")
# return 2
#
#
# def inter2(data_1, data_2):
# print("2", data_1, data_2)
# if data_1[0] > data_2[0]:
# print("inter2", data_1[0], data_2[0])
# tmp = data_1
# data_1 = data_2
# data_2 = tmp
# if data_1[1] < data_2[0]:
# print("2<")
# return 0
# elif data_1[1] == data_2[1]:
# print("2==")
# return 1
# else:
# print("2>")
# return 2
#
#
# x1_s, y1_s, x1_e, y1_e = input().split()
# x2_s, y2_s, x2_e, y2_e = input().split()
# x1_s = int(x1_s)
# y1_s = int(y1_s)
# x1_e = int(x1_e)
# y1_e = int(y1_e)
# x2_s = int(x2_s)
# y2_s = int(y2_s)
# x2_e = int(x2_e)
# y2_e = int(y2_e)
# data_x1 = [x1_s, x1_e]
# data_x2 = [x2_s, x2_e]
# data_y1 = [y1_s, y1_e]
# data_y2 = [y2_s, y2_e]
# ix = inter1(data_x1, data_x2)
# iy = inter2(data_y1, data_y2)
# if ix == 2 and iy == 2:
# print("FACE")
# elif (ix == 1 and iy == 2) or (ix == 2 and iy == 1):
# print("LINE")
# elif ix == 1 and iy == 1:
# print("POINT")
# else:
# print("NULL")
# data = [1000000001]
# n = int(input())
# for i in range(1000000000):
# for a in range(10):
# for b in range(10):
# for c in range(10):
# for d in range(10):
# for e in range(10):
# for f in range(10):
# for g in range(10):
# for h in range(10):
# if a*50000+b*10000+c*5000+d*1000+e*500+f*100+g*50+h*10 == n:
# data[i] = a+b+c+d+e+f+g+h
# break
# data.sort()
# print(data[0])
a = int(input())
# b = int(input())
# c = int(input())
# d = int(input())
# e = int(input())
# data_pasta = [a, b, c]
# data_juice = [d, e]
# data_pasta.sort()
# data_juice.sort()
# for i in range(2):
# data_pasta[i] = int(data_pasta[i])
# data_juice[i] = int(data_juice[i])
# data_pasta[2] = int(data_pasta[2])
# print(data_pasta[0])
# print(data_juice[0])
# r = data_pasta[0] + data_juice[0]
# print(r*11/10)
https://namu.wiki/w/%EA%BF%80%ED%95%98%EB%A6%B0
https://namu.wiki/w/%EB%B2%A8%EB%B2%B3(%EC%9D%B8%ED%84%B0%EB%84%B7%20%EB%B0%A9%EC%86%A1%EC%9D%B8)?from=%EB%B2%A8%EB%B2%B37
https://namu.wiki/w/%EC%83%81%EC%BE%8C%ED%95%98%EC%9D%B4
https://namu.wiki/w/%EC%88%98%EB%AF%B8%EA%B9%A1
https://namu.wiki/w/%EC%82%AC%EC%BF%A0%EB%9D%BC%20%EC%84%B8%EB%82%98
https://namu.wiki/w/%EC%8B%9C%EB%B6%80%EC%95%BC%20%EC%B9%B4%ED%98%B8
https://namu.wiki/w/%EC%99%80%EC%8B%9C%EC%98%A4%20%EB%A9%94%EC%9D%B4
https://namu.wiki/w/%EC%9C%A0%EC%A6%88%ED%82%A4%20%EB%A7%88%EB%A6%AC%EB%82%98
https://namu.wiki/w/%EC%B9%B4%EB%85%B8%20%EC%95%84%EC%9D%B4
https://namu.wiki/w/%EC%BD%94%EC%9A%B0%EB%A9%94%20%EC%97%90%EB%82%98
https://namu.wiki/w/%ED%82%A4%EB%A6%AC%EC%95%BC%EB%A7%88%20%EB%A3%A8%EC%9D%B4
https://namu.wiki/w/%ED%95%98%EB%A3%A8%EB%82%98%20%ED%95%98%EB%82%98
https://namu.wiki/w/%ED%9B%84%EC%B9%B4%EB%8B%A4%20%EB%82%98%EB%82%98
0
0
6
alexhwdo
2023년 5월 13일
In 소스 코드 제출
import math
def small(m, n):
if m >= n:
return m
if m < n:
return n
data_x = []
data_y = []
sum = 0
tmp1 = 0
tmp2 = 0
data_first = input().split()
data_second = input().split()
for i in range(4):
data_first[i] = int(data_first[i])
data_second[i] = int(data_second[i])
x1_first = data_first[0]
y1_first = data_first[1]
x2_first = data_first[2]
y2_first = data_first[3]
x1_second = data_second[0]
y1_second = data_second[1]
x2_second = data_second[2]
y2_second = data_second[3]
x_first = [x1_first, x2_first]
y_first = [y1_first, y2_first]
x_second = [x1_second, x2_second]
y_second = [y1_second, y2_second]
data_first = [x1_first, y1_first, x2_first, y2_first]
data_second = [x1_second, y1_second, x2_second, y2_second]
if (x1_first == x1_second and y1_first == y1_second) or (x1_first == x2_second and y1_first == y2_second) or (x2_first == x1_second and y2_first == y1_second) or (x2_first == x1_second and y2_first == y2_second):
print("POINT")
elif x1_first == x2_first == x1_second == x2_second or y1_first == y2_first == y1_second == y2_second:
print("LINE")
elif math.sqrt(pow(abs(abs(int(x1_first + x2_first))-abs(int(x1_second + x2_second))), 2)/4 + pow(abs(abs(int(y1_first+y2_first))-abs(int(y1_second+y2_second))), 2))/4 > small(abs(x1_first-x2_first), abs(x1_second-x2_second)):
print("NULL")
else:
print("FACE")
0
0
2
alexhwdo
2023년 4월 29일
In 소스 코드 제출
data_x = []
data_y = []
data_first = input().split()
data_second = input().split()
for i in range(4):
data_first[i] = int(data_first[i])
data_second[i] = int(data_second[i])
x1_first = data_first[0]
y1_first = data_first[1]
x2_first = data_first[2]
y2_first = data_first[3]
x1_second = data_second[0]
y1_second = data_second[1]
x2_second = data_second[2]
y2_second = data_second[3]
x_first = [x1_first, x2_first]
y_first = [y1_first, y2_first]
x_second = [x1_second, x2_second]
y_second = [y1_second, y2_second]
for i in range(2):
for j in range(2):
if x_first[i] == x_second[i] or y_first[j] == y_second[j] or x_first[0] == x_second[1] or y_first[0] == y_second[1]:
print("POINT")
break
if x_first[i] == x_second[i] or y_first[j] == y_second[j] or x_first[0] == x_second[1] or y_first[0] == y_second[1]:
break
# if y1_first == x1_second == y2_first == x2_second:
# print("LINE")
# elif y1_first == x1_second == y2_first == x2_second:
# print("LINE")
# elif x1_second == y1_first == x2_second == y2_first:
# print("LINE")
# elif x1_first == x2_second == y1_first == y2_second:
# print("LINE")
# elif x1_first == x2_second == y1_first == y2_second:
# print("LINE")
# elif x2_second == x1_first == y2_second == y1_first:
# print("LINE")
# elif y1_second == x1_first == y2_second == x2_first:
# print("LINE")
# elif x1_first == y1_second == x2_first == y2_second:
# print("LINE")
# elif x1_first == y1_second == x1_first == y2_second:
# print("LINE")
# elif x1_first == x1_second == y2_first == y1_second:
# print("LINE")
# elif x2_first == x1_second == y2_first == y1_second:
# print("LINE")
# elif x1_second == x2_first == y1_second == y2_first:
# print("LINE")
# elif x1_first == x1_second and y1_first == y1_second:
# print("POINT")
# elif (x1_first == x1_second and y1_first == y2_second) or (x1_first == x1_second and y2_first == y1_second) or (x1_first == x2_second and y1_first == y1_second) or (x2_first == x1_second and y1_first == y1_second):
# print("POINT")
# elif (x1_first == x1_second and y2_first == y2_second) or (x1_first == x2_second and y1_first == y2_second) or (x2_first == x1_second and y1_first == y2_second) or (x1_first == x2_second and y2_first == y1_second) or (x2_first == x1_second and y2_first == y1_second) or (x2_first == x2_second or y1_first == y1_second):
# print("POINT")
# elif (x1_first == x2_second and x2_first == x2_second) or (x2_first == x1_second and y2_first == y2_second) or (x2_first == x2_second and y1_first == y2_second) or (x2_first == x2_second and y2_first == y1_second):
# print("POINT")
# elif x2_first == x2_second and y2_first == y2_second:
# print("POINT")
# elif (x1_first and y1_first) < (x1_second and y1_second) < (x2_first and y2_first) < (x2_second and y2_second):
# if x2_second == x2_first == y2_first == y2_second:
# print("FACE")
# elif x1_second == x1_first == y2_first == y2_second:
# print("FACE")
# else:
# print("LINE")
# elif (x1_second and y1_second) < (x1_first and y1_first) < (x2_second and y2_second) < (x2_first and y2_second):
# if x1_second == x1_first == y1_first == y1_second:
# print("FACE")
# elif y1_second == y1_first == y2_first == y2_second:
# print("FACE")
# else:
# print("LINE")
else:
print("ERROR")
0
0
4
alexhwdo
2023년 4월 22일
In 소스 코드 제출
# data_first = input().split()
# data_second = input().split()
# for i in range(4):
# data_first[i] = int(data_first[i])
# data_second[i] = int(data_second[i])
# x1_first = data_first[0]
# y1_first = data_first[1]
# x2_first = data_first[2]
# y2_first = data_first[3]
# x1_second = data_second[0]
# y1_second = data_second[1]
# x2_second = data_second[2]
# y2_second = data_second[3]
#
# if x1_first == x1_second and y1_first == y1_second:
# print("POINT")
# elif x1_first == x2_second and y1_first == y2_second:
# print("POINT")
# elif x2_first == x1_second and y2_first == y1_second:
# print("POINT")
# elif x2_first == x2_second and x2_second == y2_second:
# print("POINT")
# elif x1_first == y1_second == x2_first == y2_second:
# print("LINE")
# elif x2_first == x1_second == y2_first == y1_second:
# print("LINE")
# elif x1_second == y1_first == x2_second == y2_first:
# print("LINE")
# elif x1_second == x1_first == y2_second == y1_first:
# print("LINE")
# elif x2_second == x1_first == y2_second == y1_first:
# print("LINE")
# elif y1_first == x1_second == y2_first == y1_second:
# print("LINE")
# elif x1_second == x2_first == y2_first == y1_second:
# print("LINE")
# elif x1_first == y1_second == x2_first == y2_second:
# print("LINE")
# elif (x1_first and y1_first) < (x1_second and y1_second) < (x2_first and y2_first) < (x2_second and y2_second):
# if x2_second == x2_first == y2_first == y2_second:
# print("FACE")
# if x1_second == x1_first == y2_first == y2_second:
# print("FACE")
# else:
# print("LINE")
# elif (x1_second and y1_second) < (x1_first and y1_first) < (x2_second and y2_second) < (x2_first and y2_second):
# if x1_second == x1_first == y1_first == y1_second:
# print("FACE")
# if y1_second == y1_first == y2_first == y2_second:
# print("FACE")
# else:
# print("LINE")
# else:
# print("NULL")
___________________________________________
# point: (x1(1), y1(1)) == (x1(2), y1(2))
# (x1(1), y1(1)) == (x2(2), y2(2))
# (x2(1), y2(1)) == (x1(2), y1(2))
# (x2(1), y2(1)) == (x2(2), y2(2))
# line: x1(1) == y1(2) == x2(1) == y2(2)
# x2(1) == x1(2) == y2(1) == y1(2)
# x1(2) == y1(1) == x2(2) == y2(1)
# x1(2) == x1(1) == y2(2) == y1(1)
# x2(2) == x1(1) == y2(2) == y1(1)
# y1(1) == x1(2) == y2(1) == x2(2)
# x1(2) == x2(1) == y2(1) == y1(2)
# x1(1) == y1(2) == x2(1) == y2(2)
# x = k
# face(c): x1(1) and y1(1) < x1(2) and y1(2) < x2(1) and y2(1) < x2(2) and y2(2)
# x1(2) and y1(2) < x1(1) and y1(1) < x2(2) and y2(2) < x2(1) and y2(1)
# face(d):
# x1(2) and y1(2) < x1(1) and y1(1) < x2(1) and y2(1) < x2(2) and y2(2)
# 중에서
# x2(2) == x2(1) == y2(1) == y2(2)
# x1(2) == x1(1) == y2(1) == y2(2)
# x2(2) and y2(2) < x2(1) and y2(1) < x1(1) and y1(1) < x1(2) and y1(2)
# 중에서
# x1(2) == x1(1) == y1(1) == y1(2)
# y1(2) == y1(1) == y2(1) == y2(2)
#
# null: else
0
0
4
alexhwdo
2023년 4월 15일
In 소스 코드 제출
# def plus():
# n, k = input().split()
# n = int(n)
# k = int(k)
# sum = k * (k + 1) // 2
# if sum > n:
# print(-1)
# if (n - sum) % k == 0:
# print(k-1)
# else:
# print(k)
# k = 0
# for m in range(n):
# k += data[m]
# return k
#
#
# def plus2():
# p = 0
# for m in range(n-1):
# p += data[m]
# return p
#
#
# data = []
# tmp = 0
# tmp2 = 0
# num = 0
# n = int(input())
# data = input().split()
# for i in range(n):
# data[i] = int(data[i])
# for i in range(n):
# tmp2 = plus2()
# if tmp2 == 0:
# print(num+1)
# break
# if data[i] == 0:
# continue
# data[i+1] -= data[i]
# data[i] = 0
# num += 1
# tmp = plus()
# if tmp == 0:
# print(num)
# break
# data = []
# num = 0
# n = int(input())
# for i in range(1, n+1):
# data.append(i)
# for i in range(len(data)//2):
# if n % 2 == 1:
# data.pop(i)
# if n % 2 == 0:
# data.pop(i)
# print(data)
# num += 1
# if n % 2 == 1:
# data.pop(len(data)-1)
# print(num)
0
0
1
alexhwdo
2023년 4월 08일
In 소스 코드 제출
# 25377
# qqq = 100000000
# result = qqq
# n = int(input())
# for i in range(n):
# x, y = map(int, input().split())
# if x <= y:
# if result < y:
# result = result
# elif result >= y:
# result = y
#
# if result == qqq:
# print(-1)
# else:
# print(result)
#25378
data = []
tmp = 0
num = 0
n = int(input())
data = input().split()
data.sort()
for i in range(n):
data[i] = int(data[i])
for i in range(n):
data[i] = 0
data[i+1] -= data[i]
num += 1
tmp += data[i]
if tmp == 0:
print(num+1)
break
0
0
4
alexhwdo
2023년 4월 01일
In 소스 코드 제출
# def f(a, b, left, right):
# while left <= right:
# middle = int((left+right)/2)
# if a[middle] == b:
# return middle
# else:
# if b < a[middle]:
# right = middle-1
# else:
# left = middle+1
# return -2
#
#
# middle = 0
# n = int(input())
# data1 = list(map(int, input().strip().split()))
# m = int(input())
# data2 = list(map(int, input().strip().split()))
# for i in range(m):
# print(f(data1, data2[i], 0, n-1)+1, end=' ')
# a, b = input().split()
# a = int(a)
# b = int(b)
# print("%0.4f" % (-(b/a)))
# left = 0
# n, k = map(int, input().split())
# data = list(map(int, input().split()))
# right = n
# while left < right:
# mid = int((left + right) / 2)
# if k <= data[mid]:
# right -= 1
# else:
# left += 1
# print(left+1)
0
0
4
alexhwdo
2023년 3월 25일
In 소스 코드 제출
# k, n = input().split()
# k = int(k)
# n = int(n)
# data = []
# data = input().split()
# for i in range(len(data)):
# data[i] = int(data[i])
# for i in range(200):
# data.append(0)
# for i in range(n-k):
# for j in range(i, k+i):
# data[k+i] += data[j]
# print(data[n-1])
# class data:
# def __init__(self, a, b):
# self.a = a
# self.b = b
#
# print('Here is Initialize')
#
# def __del__(self):
# print('Here is Destroyed')
#
# def talk(self):
#
# print('Hello?', self.a)
#
# def summation(self):
# print('Sum is ', (self.a + self.b))
#
#
# x = data(10, 20)
#
# x.talk()
# x.summation()
# class mf:
# def __init__(self, a, b):
# self.a=a
# self.b=b
# def count(self):
# for i in range(100):
# if array[i] == ',':
# if array[i+1] == 'F':
# if array[i+2] == ',':
# self.b += 1
# if array[i+1] == 'M':
# if array[i+2] == ',':
# self.a += 1
# print(self.a)
# print(self.b)
# n=int(input())
# for i in range(n):
# array = input().split()
# x = mf(array)
# class SNS:
# def __init__(self, data):
# self.data = data
#
# def process(self):
# self.F = 0
# self.M = 0
# for i in range(len(self.data)):
# if self.data[i][1] == 'F':
# self.F += 1
# else:
# self.M += 1
# def showResult(self):
# print(self.M)
# print(self.F)
#
# n = int(input())
# data = []
#
# for i in range(n):
# v = input().split(',')
# data.append(v)
#
# control = SNS(data)
# control.process()
# control.showResult()
# class AGE:
# def __init__(self, data):
# self.data = data
# def average(self):
# self.A = 0
# for i in range(len(self.data)):
# self.A += int(self.data[i][2])
# def result(self):
# print('%.2f' %((self.A)/n))
# n = int(input())
# data=[]
# for i in range(n):
# v = input().split(',')
# data.append(v)
# c = AGE(data)
# c.average()
# c.result()
# class Friends:
# def __init__(self, data):
# self.data = data
# self.A = 0
#
# def number(self):
# for i in range(n):
# self.A += len(data[i])-3
#
# def result(self):
# print('%.2f' % (self.A/n))
#
#
# n = int(input())
# data = []
# for k in range(n):
# v = input().split(',')
# data.append(v)
# c = Friends(data)
# c.number()
# c.result()
# import matplotlib
# import matplotlib.pyplot as plt
# class Train:
# def __init__(self, data, A):
# self.data = data
# self.A = A
#
# def people(self):
# for i in range(4):
# A[i] = A[i-1] + int(data[i][1]) - int(data[i][0])
# # self.draw()
# A.sort()
#
# # def draw(self):
# # plt.plot(self.A)
# # plt.show()
#
# def result(self):
# print(self.A[3])
#
#
# data = []
# A = []
# for j in range(4):
# A.append(0)
# for j in range(4):
# v = input().split(' ')
# data.append(v)
# c = Train(data, A)
# c.people()
# c.result()
# import matplotlib.pyplot as plt
# import numpy as np
#
# plt.plot([10, 30, 20, 50])
# plt.plot([5, 10, 50, 20])
# plt.show()
# import matplotlib.pyplot as plt
#
#
# class Train:
# def __init__(self, data, A):
# self.data = data
# self.A = A
#
# def people(self):
# for i in range(9):
# self.A[i] = self.A[i-1] + int(self.data[i][1]) - int(self.data[i][0])
# self.draw()
# self.A.sort()
#
# def draw(self):
# plt.plot(self.A)
# plt.show()
#
# def result(self):
# print(self.A[9])
#
#
# data = []
# A = []
# for j in range(10):
# A.append(0)
# for j in range(10):
# v = input().split(' ')
# data.append(v)
# c = Train(data, A)
# c.people()
# c.result()
# print('Hello')
# import matplotlib.pyplot as plt
# # import numpy as np
# file = open("./data.txt", "r")
#
# data = []
#
# while True:
# line = file.readline()
# if not line:
# break
# v = line.split('\t')
# data.append(v)
#
#
# def cvtStr2Num(data):
# for i in range(len(data)):
# data[i] = int(data[i])
# return data
#
#
# grocery = []
# alcohol = []
# cloth = []
# water = []
# health = []
# traffic = []
# communication = []
# game = []
# education = []
# food = []
# service = []
#
# grocery.append(data[14])
# alcohol.append(data[15])
# cloth.append(data[16])
# water.append(data[17])
# health.append(data[18])
# traffic.append(data[19])
# communication.append(data[20])
# game.append(data[21])
# education.append(data[22])
# food.append(data[23])
# service.append(data[24])
#
#
# grocery = cvtStr2Num(grocery)
# alcohol = cvtStr2Num(alcohol)
# cloth = cvtStr2Num(cloth)
# water = cvtStr2Num(water)
# health = cvtStr2Num(health)
# traffic = cvtStr2Num(traffic)
# communication = cvtStr2Num(communication)
# game = cvtStr2Num(game)
# education = cvtStr2Num(education)
# food = cvtStr2Num(food)
# service = cvtStr2Num(service)
# #
# # for i in range(len(data)):
# # for j in range(1, len(data[i])):
# # print(data[i][j], end=' ')
# # print()
#
# plt.plot(food)
# plt.show()
#
import sys
from PyQt5.QtWidgets import *
class MyApp(QWidget):
def __init__(self):
super().__init__()
self.initui()
def initui(self):
btn1 = QPushButton(self)
btn1.setText('1')
btn1.resize(50, 50)
btn1.clicked.connect(self.number1)
btn2 = QPushButton(self)
btn2.setText('2')
btn2.clicked.connect(self.number2)
btn3 = QPushButton(self)
btn3.setText('3')
btn3.clicked.connect(self.number3)
btn4 = QPushButton(self)
btn4.setText('4')
btn4.clicked.connect(self.number4)
btn5 = QPushButton(self)
btn5.setText('5')
btn5.clicked.connect(self.number5)
btn6 = QPushButton(self)
btn6.setText('6')
btn6.clicked.connect(self.number6)
btn7 = QPushButton(self)
btn7.setText('7')
btn7.clicked.connect(self.number7)
btn8 = QPushButton(self)
btn8.setText('8')
btn8.clicked.connect(self.number8)
btn9 = QPushButton(self)
btn9.setText('9')
btn9.clicked.connect(self.number9)
btn0 = QPushButton(self)
btn0.setText('0')
btn0.clicked.connect(self.number0)
btn10 = QPushButton(self)
btn10.setText("/")
btn10.clicked.connect(self.operator_divide)
btn11 = QPushButton(self)
btn11.setText("*")
btn11.clicked.connect(self.operator_multiply)
btn12 = QPushButton(self)
btn12.setText("+")
btn12.clicked.connect(self.operator_plus)
btn13 = QPushButton(self)
btn13.setText("-")
btn13.clicked.connect(self.operator_minus)
btn14 = QPushButton(self)
btn14.setText(".")
btn14.clicked.connect(self.other1)
btn15 = QPushButton(self)
btn15.setText("=")
btn15.clicked.connect(self.equal)
btn16 = QPushButton(self)
btn16.setText("(")
btn16.clicked.connect(self.other2)
btn17 = QPushButton(self)
btn17.setText(")")
btn17.clicked.connect(self.other3)
btn18 = QPushButton(self)
btn18.setText("%")
btn18.clicked.connect(self.other4)
btn19 = QPushButton(self)
btn19.setText("AC(BackSpace)")
btn19.clicked.connect(self.delete)
vbox = QGridLayout()
vbox.addWidget(btn1, 3, 0)
vbox.addWidget(btn2, 3, 1)
vbox.addWidget(btn3, 3, 2)
vbox.addWidget(btn4, 2, 0)
vbox.addWidget(btn5, 2, 1)
vbox.addWidget(btn6, 2, 2)
vbox.addWidget(btn7, 1, 0)
vbox.addWidget(btn8, 1, 1)
vbox.addWidget(btn9, 1, 2)
vbox.addWidget(btn0, 4, 0)
vbox.addWidget(btn10, 1, 3)
vbox.addWidget(btn11, 2, 3)
vbox.addWidget(btn12, 4, 3)
vbox.addWidget(btn13, 3, 3)
vbox.addWidget(btn14, 4, 1)
vbox.addWidget(btn15, 4, 2)
vbox.addWidget(btn16, 0, 0)
vbox.addWidget(btn17, 0, 1)
vbox.addWidget(btn18, 0, 2)
vbox.addWidget(btn19, 0, 3)
self.lbl = QLabel(self)
self.lbl.move(60, 40)
self.qle1 = QLineEdit(self)
self.qle1.move(0, 0)
self.qle1.resize(364, 30)
self.qle1.textChanged[str].connect(self.onChanged)
self.qle2 = QLineEdit(self)
self.qle2.move(0, 35)
self.qle2.resize(364, 30)
self.qle3 = QLineEdit(self)
self.qle3.hide()
self.qle4 = QLineEdit(self)
self.qle4.hide()
self.setLayout(vbox)
self.setWindowTitle('공학용 계산기')
self.setGeometry(300, 300, 300, 500)
self.show()
def onChanged(self, text):
self.lbl.setText(text)
self.lbl.adjustSize()
def operator_divide(self):
self.qle1.setText(self.qle1.text() + str('/'))
def operator_multiply(self):
self.qle1.setText(self.qle1.text() + str('*'))
def operator_plus(self):
self.qle1.setText(self.qle1.text() + str('+'))
def operator_minus(self):
self.qle1.setText(self.qle1.text() + str('-'))
def number1(self):
self.qle1.setText(self.qle1.text()+str(1))
def number2(self):
self.qle1.setText(self.qle1.text()+str(2))
def number3(self):
self.qle1.setText(self.qle1.text()+str(3))
def number4(self):
self.qle1.setText(self.qle1.text()+str(4))
def number5(self):
self.qle1.setText(self.qle1.text()+str(5))
def number6(self):
self.qle1.setText(self.qle1.text()+str(6))
def number7(self):
self.qle1.setText(self.qle1.text()+str(7))
def number8(self):
self.qle1.setText(self.qle1.text()+str(8))
def number9(self):
self.qle1.setText(self.qle1.text()+str(9))
def number0(self):
self.qle1.setText(self.qle1.text()+str(0))
def other1(self):
self.qle1.setText(self.qle1.text() + str('.'))
def other2(self):
self.qle1.setText(self.qle1.text() + str('('))
def other3(self):
self.qle1.setText(self.qle1.text() + str(')'))
def other4(self):
self.qle1.setText(self.qle1.text() + str('%'))
def equal(self):
self.qle3 = self.qle1.text()
self.qle4 = eval(self.qle3)
self.qle2.setText(str(self.qle4))
def delete(self):
self.qle3 = self.qle1.text()
self.qle3 = self.qle3[:-1]
self.qle1.setText(self.qle3)
if __name__ == '__main__':
app = QApplication(sys.argv)
ex = MyApp()
sys.exit(app.exec_())
0
0
6
alexhwdo
2023년 3월 18일
In 소스 코드 제출
# k, n = input().split()
# k = int(k)
# n = int(n)
# data = []
# data = input().split()
# for i in range(len(data)):
# data[i] = int(data[i])
# for i in range(200):
# data.append(0)
# for i in range(n-k):
# for j in range(i, k+i):
# data[k+i] += data[j]
# print(data[n-1])
# class data:
# def __init__(self, a, b):
# self.a = a
# self.b = b
#
# print('Here is Initialize')
#
# def __del__(self):
# print('Here is Destroyed')
#
# def talk(self):
#
# print('Hello?', self.a)
#
# def summation(self):
# print('Sum is ', (self.a + self.b))
#
#
# x = data(10, 20)
#
# x.talk()
# x.summation()
# class mf:
# def __init__(self, a, b):
# self.a=a
# self.b=b
# def count(self):
# for i in range(100):
# if array[i] == ',':
# if array[i+1] == 'F':
# if array[i+2] == ',':
# self.b += 1
# if array[i+1] == 'M':
# if array[i+2] == ',':
# self.a += 1
# print(self.a)
# print(self.b)
# n=int(input())
# for i in range(n):
# array = input().split()
# x = mf(array)
# class SNS:
# def __init__(self, data):
# self.data = data
#
# def process(self):
# self.F = 0
# self.M = 0
# for i in range(len(self.data)):
# if self.data[i][1] == 'F':
# self.F += 1
# else:
# self.M += 1
# def showResult(self):
# print(self.M)
# print(self.F)
#
# n = int(input())
# data = []
#
# for i in range(n):
# v = input().split(',')
# data.append(v)
#
# control = SNS(data)
# control.process()
# control.showResult()
# class AGE:
# def __init__(self, data):
# self.data = data
# def average(self):
# self.A = 0
# for i in range(len(self.data)):
# self.A += int(self.data[i][2])
# def result(self):
# print('%.2f' %((self.A)/n))
# n = int(input())
# data=[]
# for i in range(n):
# v = input().split(',')
# data.append(v)
# c = AGE(data)
# c.average()
# c.result()
# class Friends:
# def __init__(self, data):
# self.data = data
# self.A = 0
#
# def number(self):
# for i in range(n):
# self.A += len(data[i])-3
#
# def result(self):
# print('%.2f' % (self.A/n))
#
#
# n = int(input())
# data = []
# for k in range(n):
# v = input().split(',')
# data.append(v)
# c = Friends(data)
# c.number()
# c.result()
# import matplotlib
# import matplotlib.pyplot as plt
# class Train:
# def __init__(self, data, A):
# self.data = data
# self.A = A
#
# def people(self):
# for i in range(4):
# A[i] = A[i-1] + int(data[i][1]) - int(data[i][0])
# # self.draw()
# A.sort()
#
# # def draw(self):
# # plt.plot(self.A)
# # plt.show()
#
# def result(self):
# print(self.A[3])
#
#
# data = []
# A = []
# for j in range(4):
# A.append(0)
# for j in range(4):
# v = input().split(' ')
# data.append(v)
# c = Train(data, A)
# c.people()
# c.result()
# import matplotlib.pyplot as plt
# import numpy as np
#
# plt.plot([10, 30, 20, 50])
# plt.plot([5, 10, 50, 20])
# plt.show()
# import matplotlib.pyplot as plt
#
#
# class Train:
# def __init__(self, data, A):
# self.data = data
# self.A = A
#
# def people(self):
# for i in range(9):
# self.A[i] = self.A[i-1] + int(self.data[i][1]) - int(self.data[i][0])
# self.draw()
# self.A.sort()
#
# def draw(self):
# plt.plot(self.A)
# plt.show()
#
# def result(self):
# print(self.A[9])
#
#
# data = []
# A = []
# for j in range(10):
# A.append(0)
# for j in range(10):
# v = input().split(' ')
# data.append(v)
# c = Train(data, A)
# c.people()
# c.result()
# print('Hello')
# import matplotlib.pyplot as plt
# # import numpy as np
# file = open("./data.txt", "r")
#
# data = []
#
# while True:
# line = file.readline()
# if not line:
# break
# v = line.split('\t')
# data.append(v)
#
#
# def cvtStr2Num(data):
# for i in range(len(data)):
# data[i] = int(data[i])
# return data
#
#
# grocery = []
# alcohol = []
# cloth = []
# water = []
# health = []
# traffic = []
# communication = []
# game = []
# education = []
# food = []
# service = []
#
# grocery.append(data[14])
# alcohol.append(data[15])
# cloth.append(data[16])
# water.append(data[17])
# health.append(data[18])
# traffic.append(data[19])
# communication.append(data[20])
# game.append(data[21])
# education.append(data[22])
# food.append(data[23])
# service.append(data[24])
#
#
# grocery = cvtStr2Num(grocery)
# alcohol = cvtStr2Num(alcohol)
# cloth = cvtStr2Num(cloth)
# water = cvtStr2Num(water)
# health = cvtStr2Num(health)
# traffic = cvtStr2Num(traffic)
# communication = cvtStr2Num(communication)
# game = cvtStr2Num(game)
# education = cvtStr2Num(education)
# food = cvtStr2Num(food)
# service = cvtStr2Num(service)
# #
# # for i in range(len(data)):
# # for j in range(1, len(data[i])):
# # print(data[i][j], end=' ')
# # print()
#
# plt.plot(food)
# plt.show()
#
import sys
from PyQt5.QtWidgets import *
class MyApp(QWidget):
def __init__(self):
super().__init__()
self.initui()
self.lbl = QLabel(self)
def initui(self):
btn1 = QPushButton(self)
btn1.setText('1')
btn1.resize(50, 50)
btn2 = QPushButton(self)
btn2.setText('2')
btn3 = QPushButton(self)
btn3.setText('3')
btn4 = QPushButton(self)
btn4.setText('4')
btn5 = QPushButton(self)
btn5.setText('5')
btn6 = QPushButton(self)
btn6.setText('6')
btn7 = QPushButton(self)
btn7.setText('7')
btn8 = QPushButton(self)
btn8.setText('8')
btn9 = QPushButton(self)
btn9.setText('9')
btn0 = QPushButton(self)
btn0.setText('0')
btn10 = QPushButton(self)
btn10.setText("/")
btn11 = QPushButton(self)
btn11.setText("*")
btn12 = QPushButton(self)
btn12.setText("+")
btn13 = QPushButton(self)
btn13.setText("-")
btn14 = QPushButton(self)
btn14.setText(".")
btn15 = QPushButton(self)
btn15.setText("=")
btn16 = QPushButton(self)
btn16.setText("(")
btn17 = QPushButton(self)
btn17.setText(")")
btn18 = QPushButton(self)
btn18.setText("%")
btn19 = QPushButton(self)
btn19.setText("AC(BackSpace)")
vbox = QGridLayout()
vbox.addWidget(btn1, 3, 0)
vbox.addWidget(btn2, 3, 1)
vbox.addWidget(btn3, 3, 2)
vbox.addWidget(btn4, 2, 0)
vbox.addWidget(btn5, 2, 1)
vbox.addWidget(btn6, 2, 2)
vbox.addWidget(btn7, 1, 0)
vbox.addWidget(btn8, 1, 1)
vbox.addWidget(btn9, 1, 2)
vbox.addWidget(btn0, 4, 0)
vbox.addWidget(btn10, 1, 3)
vbox.addWidget(btn11, 2, 3)
vbox.addWidget(btn12, 4, 3)
vbox.addWidget(btn13, 3, 3)
vbox.addWidget(btn14, 4, 1)
vbox.addWidget(btn15, 4, 2)
vbox.addWidget(btn16, 0, 0)
vbox.addWidget(btn17, 0, 1)
vbox.addWidget(btn18, 0, 2)
vbox.addWidget(btn19, 0, 3)
def plus():
print(qle1.setText('+'))
self.lbl = QLabel(self)
self.lbl.move(60, 40)
qle1 = QLineEdit(self)
qle1.move(0, 0)
qle1.resize(364, 30)
qle2 = QLineEdit(self)
qle2.move(0, 35)
qle2.resize(364, 30)
self.setLayout(vbox)
self.setWindowTitle('공학용 계산기')
self.setGeometry(300, 300, 300, 500)
self.show()
if __name__ == '__main__':
app = QApplication(sys.argv)
ex = MyApp()
sys.exit(app.exec_())
# import sys
# from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QVBoxLayout, QLabel, QLineEdit
# from PyQt5.QtGui import QIcon, QPixmap
#
#
# class Myapp(QWidget):
#
# def __init__(self):
# super().__init__()
#
# self.initUI()
#
# def initUI(self):
# btn = QPushButton(self)
# btn.setText('Button&2')
# btn.clicked.connect(self.on_click)
#
# self.qle = QLineEdit(self)
#
# self.lbl = QLabel(self)
#
# vbox = QVBoxLayout()
# vbox.addWidget(self.qle)
# vbox.addWidget(btn)
# vbox.addWidget(self.lbl)
#
# self.setLayout(vbox)
# self.setWindowTitle('Button 누르면 Label 에 표기')
# self.setGeometry(300, 300, 300, 200)
# self.show()
#
# def on_click(self):
# self.lbl.setText(self.qle.text())
# self.lbl.adjustSize()
#
#
# if __name__ == '__main__':
# app = QApplication(sys.argv)
# ex = Myapp()
# sys.exit(app.exec_())
0
0
3
alexhwdo
2023년 3월 11일
In 소스 코드 제출
# k, n = input().split()
# k = int(k)
# n = int(n)
# data = []
# data = input().split()
# for i in range(len(data)):
# data[i] = int(data[i])
# for i in range(200):
# data.append(0)
# for i in range(n-k):
# for j in range(i, k+i):
# data[k+i] += data[j]
# print(data[n-1])
# class data:
# def __init__(self, a, b):
# self.a = a
# self.b = b
#
# print('Here is Initialize')
#
# def __del__(self):
# print('Here is Destroyed')
#
# def talk(self):
#
# print('Hello?', self.a)
#
# def summation(self):
# print('Sum is ', (self.a + self.b))
#
#
# x = data(10, 20)
#
# x.talk()
# x.summation()
# class mf:
# def __init__(self, a, b):
# self.a=a
# self.b=b
# def count(self):
# for i in range(100):
# if array[i] == ',':
# if array[i+1] == 'F':
# if array[i+2] == ',':
# self.b += 1
# if array[i+1] == 'M':
# if array[i+2] == ',':
# self.a += 1
# print(self.a)
# print(self.b)
# n=int(input())
# for i in range(n):
# array = input().split()
# x = mf(array)
# class SNS:
# def __init__(self, data):
# self.data = data
#
# def process(self):
# self.F = 0
# self.M = 0
# for i in range(len(self.data)):
# if self.data[i][1] == 'F':
# self.F += 1
# else:
# self.M += 1
# def showResult(self):
# print(self.M)
# print(self.F)
#
# n = int(input())
# data = []
#
# for i in range(n):
# v = input().split(',')
# data.append(v)
#
# control = SNS(data)
# control.process()
# control.showResult()
# class AGE:
# def __init__(self, data):
# self.data = data
# def average(self):
# self.A = 0
# for i in range(len(self.data)):
# self.A += int(self.data[i][2])
# def result(self):
# print('%.2f' %((self.A)/n))
# n = int(input())
# data=[]
# for i in range(n):
# v = input().split(',')
# data.append(v)
# c = AGE(data)
# c.average()
# c.result()
# class Friends:
# def __init__(self, data):
# self.data = data
# self.A = 0
#
# def number(self):
# for i in range(n):
# self.A += len(data[i])-3
#
# def result(self):
# print('%.2f' % (self.A/n))
#
#
# n = int(input())
# data = []
# for k in range(n):
# v = input().split(',')
# data.append(v)
# c = Friends(data)
# c.number()
# c.result()
# import matplotlib
# import matplotlib.pyplot as plt
# class Train:
# def __init__(self, data, A):
# self.data = data
# self.A = A
#
# def people(self):
# for i in range(4):
# A[i] = A[i-1] + int(data[i][1]) - int(data[i][0])
# # self.draw()
# A.sort()
#
# # def draw(self):
# # plt.plot(self.A)
# # plt.show()
#
# def result(self):
# print(self.A[3])
#
#
# data = []
# A = []
# for j in range(4):
# A.append(0)
# for j in range(4):
# v = input().split(' ')
# data.append(v)
# c = Train(data, A)
# c.people()
# c.result()
# import matplotlib.pyplot as plt
# import numpy as np
#
# plt.plot([10, 30, 20, 50])
# plt.plot([5, 10, 50, 20])
# plt.show()
# import matplotlib.pyplot as plt
#
#
# class Train:
# def __init__(self, data, A):
# self.data = data
# self.A = A
#
# def people(self):
# for i in range(9):
# self.A[i] = self.A[i-1] + int(self.data[i][1]) - int(self.data[i][0])
# self.draw()
# self.A.sort()
#
# def draw(self):
# plt.plot(self.A)
# plt.show()
#
# def result(self):
# print(self.A[9])
#
#
# data = []
# A = []
# for j in range(10):
# A.append(0)
# for j in range(10):
# v = input().split(' ')
# data.append(v)
# c = Train(data, A)
# c.people()
# c.result()
# print('Hello')
# import matplotlib.pyplot as plt
# # import numpy as np
# file = open("./data.txt", "r")
#
# data = []
#
# while True:
# line = file.readline()
# if not line:
# break
# v = line.split('\t')
# data.append(v)
#
#
# def cvtStr2Num(data):
# for i in range(len(data)):
# data[i] = int(data[i])
# return data
#
#
# grocery = []
# alcohol = []
# cloth = []
# water = []
# health = []
# traffic = []
# communication = []
# game = []
# education = []
# food = []
# service = []
#
# grocery.append(data[14])
# alcohol.append(data[15])
# cloth.append(data[16])
# water.append(data[17])
# health.append(data[18])
# traffic.append(data[19])
# communication.append(data[20])
# game.append(data[21])
# education.append(data[22])
# food.append(data[23])
# service.append(data[24])
#
#
# grocery = cvtStr2Num(grocery)
# alcohol = cvtStr2Num(alcohol)
# cloth = cvtStr2Num(cloth)
# water = cvtStr2Num(water)
# health = cvtStr2Num(health)
# traffic = cvtStr2Num(traffic)
# communication = cvtStr2Num(communication)
# game = cvtStr2Num(game)
# education = cvtStr2Num(education)
# food = cvtStr2Num(food)
# service = cvtStr2Num(service)
# #
# # for i in range(len(data)):
# # for j in range(1, len(data[i])):
# # print(data[i][j], end=' ')
# # print()
#
# plt.plot(food)
# plt.show()
#
# import sys
# from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QLabel, QLineEdit
# from PyQt5.QtWidgets import QGridLayout
#
#
# class MyApp(QWidget):
#
# def __init__(self):
# super().__init__()
# self.initUI()
#
# def initUI(self):
# btn1 = QPushButton(self)
# btn1.setText('1')
# btn1.resize(50, 50)
#
# btn2 = QPushButton(self)
# btn2.setText('2')
#
# btn3 = QPushButton(self)
# btn3.setText('3')
#
# btn4 = QPushButton(self)
# btn4.setText('4')
#
# btn5 = QPushButton(self)
# btn5.setText('5')
#
# btn6 = QPushButton(self)
# btn6.setText('6')
#
# btn7 = QPushButton(self)
# btn7.setText('7')
#
# btn8 = QPushButton(self)
# btn8.setText('8')
#
# btn9 = QPushButton(self)
# btn9.setText('9')
#
# btn0 = QPushButton(self)
# btn0.setText('0')
#
# btn10 = QPushButton(self)
# btn10.setText("/")
#
# btn11 = QPushButton(self)
# btn11.setText("*")
#
# btn12 = QPushButton(self)
# btn12.setText("+")
#
# btn13 = QPushButton(self)
# btn13.setText("-")
#
# btn14 = QPushButton(self)
# btn14.setText(".")
#
# btn15 = QPushButton(self)
# btn15.setText("=")
#
# btn16 = QPushButton(self)
# btn16.setText("(")
#
# btn17 = QPushButton(self)
# btn17.setText(")")
#
# btn18 = QPushButton(self)
# btn18.setText("%")
#
# btn19 = QPushButton(self)
# btn19.setText("AC")
#
# vbox = QGridLayout()
# vbox.addWidget(btn1, 3, 0)
# vbox.addWidget(btn2, 3, 1)
# vbox.addWidget(btn3, 3, 2)
# vbox.addWidget(btn4, 2, 0)
# vbox.addWidget(btn5, 2, 1)
# vbox.addWidget(btn6, 2, 2)
# vbox.addWidget(btn7, 1, 0)
# vbox.addWidget(btn8, 1, 1)
# vbox.addWidget(btn9, 1, 2)
# vbox.addWidget(btn0)
# vbox.addWidget(btn10, 1, 3)
# vbox.addWidget(btn11, 2, 3)
# vbox.addWidget(btn12, 4, 3)
# vbox.addWidget(btn13, 3, 3)
# vbox.addWidget(btn14, 4, 1)
# vbox.addWidget(btn15, 4, 2)
# vbox.addWidget(btn16, 0, 0)
# vbox.addWidget(btn17, 0, 1)
# vbox.addWidget(btn18, 0, 2)
# vbox.addWidget(btn19, 0, 3)
#
# self.lbl = QLabel(self)
# self.lbl.move(60, 40)
#
# qle = QLineEdit(self)
# qle.move(120, 0)
# qle.textChanged[str].connect(self.onChanged)
#
# self.setLayout(vbox)
# self.setWindowTitle('공학용계산기')
# self.setGeometry(300, 300, 300, 200)
# self.show()
#
# def onChanged(self, text):
# self.lbl.setText(text)
# self.lbl.adjustSize()
#
#
# if __name__ == '__main__':
# app = QApplication(sys.argv)
# ex = MyApp()
# sys.exit(app.exec_())
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QVBoxLayout, QLabel, QLineEdit
from PyQt5.QtGui import QIcon, QPixmap
class Myapp(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
btn = QPushButton(self)
btn.setText('Button&2')
btn.clicked.connect(self.on_click)
self.qle = QLineEdit(self)
self.lbl = QLabel(self)
vbox = QVBoxLayout()
vbox.addWidget(self.qle)
vbox.addWidget(btn)
vbox.addWidget(self.lbl)
self.setLayout(vbox)
self.setWindowTitle('Button누르면 Label에 표기')
self.setGeometry(300, 300, 300, 200)
self.show()
def on_click(self):
self.lbl.setText(self.qle.text())
self.lbl.adjustSize()
if __name__ == '__main__':
app = QApplication(sys.argv)
ex = Myapp()
sys.exit(app.exec_())
0
0
3
alexhwdo
2023년 3월 04일
In 소스 코드 제출
# k, n = input().split()
# k = int(k)
# n = int(n)
# data = []
# data = input().split()
# for i in range(len(data)):
# data[i] = int(data[i])
# for i in range(200):
# data.append(0)
# for i in range(n-k):
# for j in range(i, k+i):
# data[k+i] += data[j]
# print(data[n-1])
# class data:
# def __init__(self, a, b):
# self.a = a
# self.b = b
#
# print('Here is Initialize')
#
# def __del__(self):
# print('Here is Destroyed')
#
# def talk(self):
#
# print('Hello?', self.a)
#
# def summation(self):
# print('Sum is ', (self.a + self.b))
#
#
# x = data(10, 20)
#
# x.talk()
# x.summation()
# class mf:
# def __init__(self, a, b):
# self.a=a
# self.b=b
# def count(self):
# for i in range(100):
# if array[i] == ',':
# if array[i+1] == 'F':
# if array[i+2] == ',':
# self.b += 1
# if array[i+1] == 'M':
# if array[i+2] == ',':
# self.a += 1
# print(self.a)
# print(self.b)
# n=int(input())
# for i in range(n):
# array = input().split()
# x = mf(array)
# class SNS:
# def __init__(self, data):
# self.data = data
#
# def process(self):
# self.F = 0
# self.M = 0
# for i in range(len(self.data)):
# if self.data[i][1] == 'F':
# self.F += 1
# else:
# self.M += 1
# def showResult(self):
# print(self.M)
# print(self.F)
#
# n = int(input())
# data = []
#
# for i in range(n):
# v = input().split(',')
# data.append(v)
#
# control = SNS(data)
# control.process()
# control.showResult()
# class AGE:
# def __init__(self, data):
# self.data = data
# def average(self):
# self.A = 0
# for i in range(len(self.data)):
# self.A += int(self.data[i][2])
# def result(self):
# print('%.2f' %((self.A)/n))
# n = int(input())
# data=[]
# for i in range(n):
# v = input().split(',')
# data.append(v)
# c = AGE(data)
# c.average()
# c.result()
# class Friends:
# def __init__(self, data):
# self.data = data
# self.A = 0
#
# def number(self):
# for i in range(n):
# self.A += len(data[i])-3
#
# def result(self):
# print('%.2f' % (self.A/n))
#
#
# n = int(input())
# data = []
# for k in range(n):
# v = input().split(',')
# data.append(v)
# c = Friends(data)
# c.number()
# c.result()
import matplotlib
import matplotlib.pyplot as plt
# class Train:
# def __init__(self, data, A):
# self.data = data
# self.A = A
#
# def people(self):
# for i in range(4):
# A[i] = A[i-1] + int(data[i][1]) - int(data[i][0])
# # self.draw()
# A.sort()
#
# # def draw(self):
# # plt.plot(self.A)
# # plt.show()
#
# def result(self):
# print(self.A[3])
#
#
# data = []
# A = []
# for j in range(4):
# A.append(0)
# for j in range(4):
# v = input().split(' ')
# data.append(v)
# c = Train(data, A)
# c.people()
# c.result()
# import matplotlib.pyplot as plt
# import numpy as np
#
# plt.plot([10, 30, 20, 50])
# plt.plot([5, 10, 50, 20])
# plt.show()
# import matplotlib.pyplot as plt
#
#
# class Train:
# def __init__(self, data, A):
# self.data = data
# self.A = A
#
# def people(self):
# for i in range(9):
# self.A[i] = self.A[i-1] + int(self.data[i][1]) - int(self.data[i][0])
# self.draw()
# self.A.sort()
#
# def draw(self):
# plt.plot(self.A)
# plt.show()
#
# def result(self):
# print(self.A[9])
#
#
# data = []
# A = []
# for j in range(10):
# A.append(0)
# for j in range(10):
# v = input().split(' ')
# data.append(v)
# c = Train(data, A)
# c.people()
# c.result()
# print('Hello')
# import matplotlib.pyplot as plt
# file = open("C:/Users/user/Desktop/data.txt", "r")
# data = []
# while True:
# line = file.readline()
# if not line:
# break
# v = line.split('\t')
# data.append(v)
#
#
# def cvtStr2Num(data):
# for i in range(1, len(data)):
# data[i] = int(data[i])
# return data
#
#
# grocery = []
# alcohol = []
# cloth = []
# water = []
# house = []
# health = []
# traffic = []
# communication = []
# game = []
# education = []
# food = []
# service = []
#
#
# grocery = data[14]
# alcohol = data[15]
# cloth = data[16]
# water = data[17]
# house = data[18]
# health = data[19]
# traffic = data[20]
# communication = data[21]
# game = data[22]
# education = data[23]
# food = data[24]
# service = data[25]
#
# grocery = cvtStr2Num(grocery)
# alcohol = cvtStr2Num(alcohol)
# cloth = cvtStr2Num(cloth)
# water = cvtStr2Num(water)
# house = cvtStr2Num(house)
# health = cvtStr2Num(health)
# traffic = cvtStr2Num(traffic)
# communication = cvtStr2Num(communication)
# game = cvtStr2Num(game)
# education = cvtStr2Num(education)
# food = cvtStr2Num(food)
# service = cvtStr2Num(service)
#
#
# plt.plot(grocery)
# plt.plot(alcohol)
# plt.plot(cloth)
# plt.plot(water)
# plt.plot(house)
# plt.plot(health)
# plt.plot(traffic)
# plt.plot(communication)
# plt.plot(game)
# plt.plot(education)
# plt.plot(food)
# plt.plot(service)
# plt.show()
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QVBoxLayout
class MyApp(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
btn1 = QPushButton('&Button1', self)
btn1.setCheckable(True)
btn1.toggle()
btn2 = QPushButton('&Button2', self)
btn2.setCheckable(True)
btn2.toggle()
btn3 = QPushButton('&Button3', self)
btn3.setCheckable(True)
btn3.toggle()
vbox = QVBoxLayout()
vbox.addWidget(btn1)
vbox.addWidget(btn2)
vbox.addWidget(btn3)
self.setLayout(vbox)
self.setWindowTitle('QPushButton')
self.setGeometry(800, 400, 300, 200)
self.show()
if __name__ == '__main__':
app = QApplication(sys.argv)
ex = MyApp()
sys.exit(app.exec_())
import PyQt5
0
0
2
alexhwdo
2023년 2월 25일
In 소스 코드 제출
# k, n = input().split()
# k = int(k)
# n = int(n)
# data = []
# data = input().split()
# for i in range(len(data)):
# data[i] = int(data[i])
# for i in range(200):
# data.append(0)
# for i in range(n-k):
# for j in range(i, k+i):
# data[k+i] += data[j]
# print(data[n-1])
# class data:
# def __init__(self, a, b):
# self.a = a
# self.b = b
#
# print('Here is Initialize')
#
# def __del__(self):
# print('Here is Destroyed')
#
# def talk(self):
#
# print('Hello?', self.a)
#
# def summation(self):
# print('Sum is ', (self.a + self.b))
#
#
# x = data(10, 20)
#
# x.talk()
# x.summation()
# class mf:
# def __init__(self, a, b):
# self.a=a
# self.b=b
# def count(self):
# for i in range(100):
# if array[i] == ',':
# if array[i+1] == 'F':
# if array[i+2] == ',':
# self.b += 1
# if array[i+1] == 'M':
# if array[i+2] == ',':
# self.a += 1
# print(self.a)
# print(self.b)
# n=int(input())
# for i in range(n):
# array = input().split()
# x = mf(array)
# class SNS:
# def __init__(self, data):
# self.data = data
#
# def process(self):
# self.F = 0
# self.M = 0
# for i in range(len(self.data)):
# if self.data[i][1] == 'F':
# self.F += 1
# else:
# self.M += 1
# def showResult(self):
# print(self.M)
# print(self.F)
#
# n = int(input())
# data = []
#
# for i in range(n):
# v = input().split(',')
# data.append(v)
#
# control = SNS(data)
# control.process()
# control.showResult()
# class AGE:
# def __init__(self, data):
# self.data = data
# def average(self):
# self.A = 0
# for i in range(len(self.data)):
# self.A += int(self.data[i][2])
# def result(self):
# print('%.2f' %((self.A)/n))
# n = int(input())
# data=[]
# for i in range(n):
# v = input().split(',')
# data.append(v)
# c = AGE(data)
# c.average()
# c.result()
# class Friends:
# def __init__(self, data):
# self.data = data
# self.A = 0
#
# def number(self):
# for i in range(n):
# self.A += len(data[i])-3
#
# def result(self):
# print('%.2f' % (self.A/n))
#
#
# n = int(input())
# data = []
# for k in range(n):
# v = input().split(',')
# data.append(v)
# c = Friends(data)
# c.number()
# c.result()
import matplotlib
import matplotlib.pyplot as plt
# class Train:
# def __init__(self, data, A):
# self.data = data
# self.A = A
#
# def people(self):
# for i in range(4):
# A[i] = A[i-1] + int(data[i][1]) - int(data[i][0])
# # self.draw()
# A.sort()
#
# # def draw(self):
# # plt.plot(self.A)
# # plt.show()
#
# def result(self):
# print(self.A[3])
#
#
# data = []
# A = []
# for j in range(4):
# A.append(0)
# for j in range(4):
# v = input().split(' ')
# data.append(v)
# c = Train(data, A)
# c.people()
# c.result()
# import matplotlib.pyplot as plt
# import numpy as np
#
# plt.plot([10, 30, 20, 50])
# plt.plot([5, 10, 50, 20])
# plt.show()
# import matplotlib.pyplot as plt
#
#
# class Train:
# def __init__(self, data, A):
# self.data = data
# self.A = A
#
# def people(self):
# for i in range(9):
# self.A[i] = self.A[i-1] + int(self.data[i][1]) - int(self.data[i][0])
# self.draw()
# self.A.sort()
#
# def draw(self):
# plt.plot(self.A)
# plt.show()
#
# def result(self):
# print(self.A[9])
#
#
# data = []
# A = []
# for j in range(10):
# A.append(0)
# for j in range(10):
# v = input().split(' ')
# data.append(v)
# c = Train(data, A)
# c.people()
# c.result()
# print('Hello')
import matplotlib.pyplot as plt
# import numpy as np
file = open("./data.txt", "r")
data = []
while True:
line = file.readline()
if not line:
break
v = line.split('\t')
data.append(v)
def cvtStr2Num(data):
for i in range(len(data)):
data[i] = int(data[i])
return data
grocery = []
alcohol = []
cloth = []
water = []
health = []
traffic = []
communication = []
game = []
education = []
food = []
service = []
grocery.append(data[14])
alcohol.append(data[15])
cloth.append(data[16])
water.append(data[17])
health.append(data[18])
traffic.append(data[19])
communication.append(data[20])
game.append(data[21])
education.append(data[22])
food.append(data[23])
service.append(data[24])
grocery = cvtStr2Num(grocery)
alcohol = cvtStr2Num(alcohol)
cloth = cvtStr2Num(cloth)
water = cvtStr2Num(water)
health = cvtStr2Num(health)
traffic = cvtStr2Num(traffic)
communication = cvtStr2Num(communication)
game = cvtStr2Num(game)
education = cvtStr2Num(education)
food = cvtStr2Num(food)
service = cvtStr2Num(service)
#
# for i in range(len(data)):
# for j in range(1, len(data[i])):
# print(data[i][j], end=' ')
# print()
plt.plot(food)
plt.show()
0
0
5
alexhwdo
2023년 2월 18일
In 소스 코드 제출
# k, n = input().split()
# k = int(k)
# n = int(n)
# data = []
# data = input().split()
# for i in range(len(data)):
# data[i] = int(data[i])
# for i in range(200):
# data.append(0)
# for i in range(n-k):
# for j in range(i, k+i):
# data[k+i] += data[j]
# print(data[n-1])
# class data:
# def __init__(self, a, b):
# self.a = a
# self.b = b
#
# print('Here is Initialize')
#
# def __del__(self):
# print('Here is Destroyed')
#
# def talk(self):
#
# print('Hello?', self.a)
#
# def summation(self):
# print('Sum is ', (self.a + self.b))
#
#
# x = data(10, 20)
#
# x.talk()
# x.summation()
# class mf:
# def __init__(self, a, b):
# self.a=a
# self.b=b
# def count(self):
# for i in range(100):
# if array[i] == ',':
# if array[i+1] == 'F':
# if array[i+2] == ',':
# self.b += 1
# if array[i+1] == 'M':
# if array[i+2] == ',':
# self.a += 1
# print(self.a)
# print(self.b)
# n=int(input())
# for i in range(n):
# array = input().split()
# x = mf(array)
# class SNS:
# def __init__(self, data):
# self.data = data
#
# def process(self):
# self.F = 0
# self.M = 0
# for i in range(len(self.data)):
# if self.data[i][1] == 'F':
# self.F += 1
# else:
# self.M += 1
# def showResult(self):
# print(self.M)
# print(self.F)
#
# n = int(input())
# data = []
#
# for i in range(n):
# v = input().split(',')
# data.append(v)
#
# control = SNS(data)
# control.process()
# control.showResult()
# class AGE:
# def __init__(self, data):
# self.data = data
# def average(self):
# self.A = 0
# for i in range(len(self.data)):
# self.A += int(self.data[i][2])
# def result(self):
# print('%.2f' %((self.A)/n))
# n = int(input())
# data=[]
# for i in range(n):
# v = input().split(',')
# data.append(v)
# c = AGE(data)
# c.average()
# c.result()
# class Friends:
# def __init__(self, data):
# self.data = data
# self.A = 0
#
# def number(self):
# for i in range(n):
# self.A += len(data[i])-3
#
# def result(self):
# print('%.2f' % (self.A/n))
#
#
# n = int(input())
# data = []
# for k in range(n):
# v = input().split(',')
# data.append(v)
# c = Friends(data)
# c.number()
# c.result()
import matplotlib.pyplot as plt
class Train:
def __init__(self, data, A):
self.data = data
self.A = A
def people(self):
for i in range(4):
A[i] = A[i-1] + int(data[i][1]) - int(data[i][0])
# self.draw()
A.sort()
# def draw(self):
# plt.plot(self.A)
# plt.show()
def result(self):
print(self.A[3])
data = []
A = []
for j in range(4):
A.append(0)
for j in range(4):
v = input().split(' ')
data.append(v)
c = Train(data, A)
c.people()
c.result()
# import matplotlib.pyplot as plt
# import numpy as np
#
# plt.plot([10, 30, 20, 50])
# plt.plot([5, 10, 50, 20])
# plt.show()
0
0
5
alexhwdo
2023년 2월 18일
In 소스 코드 제출
# k, n = input().split()
# k = int(k)
# n = int(n)
# data = []
# data = input().split()
# for i in range(len(data)):
# data[i] = int(data[i])
# for i in range(200):
# data.append(0)
# for i in range(n-k):
# for j in range(i, k+i):
# data[k+i] += data[j]
# print(data[n-1])
# class data:
# def __init__(self, a, b):
# self.a = a
# self.b = b
#
# print('Here is Initialize')
#
# def __del__(self):
# print('Here is Destroyed')
#
# def talk(self):
#
# print('Hello?', self.a)
#
# def summation(self):
# print('Sum is ', (self.a + self.b))
#
#
# x = data(10, 20)
#
# x.talk()
# x.summation()
# class mf:
# def __init__(self, a, b):
# self.a=a
# self.b=b
# def count(self):
# for i in range(100):
# if array[i] == ',':
# if array[i+1] == 'F':
# if array[i+2] == ',':
# self.b += 1
# if array[i+1] == 'M':
# if array[i+2] == ',':
# self.a += 1
# print(self.a)
# print(self.b)
# n=int(input())
# for i in range(n):
# array = input().split()
# x = mf(array)
# class SNS:
# def __init__(self, data):
# self.data = data
#
# def process(self):
# self.F = 0
# self.M = 0
# for i in range(len(self.data)):
# if self.data[i][1] == 'F':
# self.F += 1
# else:
# self.M += 1
# def showResult(self):
# print(self.M)
# print(self.F)
#
# n = int(input())
# data = []
#
# for i in range(n):
# v = input().split(',')
# data.append(v)
#
# control = SNS(data)
# control.process()
# control.showResult()
# class AGE:
# def __init__(self, data):
# self.data = data
# def average(self):
# self.A = 0
# for i in range(len(self.data)):
# self.A += int(self.data[i][2])
# def result(self):
# print('%.2f' %((self.A)/n))
# n = int(input())
# data=[]
# for i in range(n):
# v = input().split(',')
# data.append(v)
# c = AGE(data)
# c.average()
# c.result()
class Friends:
def __init__(self, data):
self.data = data
self.A = 0
def number(self):
for i in range(n):
for j in range(len(data[i])):
if data[i][j] == ',':
self.A += 1
def result(self):
print('%.2f' % ((self.A-n*2)/n))
n = int(input())
data = []
for k in range(n):
v = input().split(',')
data.append(v)
c = Friends(data)
c.number()
c.result()
0
0
3
alexhwdo
2023년 2월 11일
In 소스 코드 제출
# k, n = input().split()
# k = int(k)
# n = int(n)
# data = []
# data = input().split()
# for i in range(len(data)):
# data[i] = int(data[i])
# for i in range(200):
# data.append(0)
# for i in range(n-k):
# for j in range(i, k+i):
# data[k+i] += data[j]
# print(data[n-1])
# class data:
# def __init__(self, a, b):
# self.a = a
# self.b = b
#
# print('Here is Initialize')
#
# def __del__(self):
# print('Here is Destroyed')
#
# def talk(self):
#
# print('Hello?', self.a)
#
# def summation(self):
# print('Sum is ', (self.a + self.b))
#
#
# x = data(10, 20)
#
# x.talk()
# x.summation()
# class mf:
# def __init__(self, a, b):
# self.a=a
# self.b=b
# def count(self):
# for i in range(100):
# if array[i] == ',':
# if array[i+1] == 'F':
# if array[i+2] == ',':
# self.b += 1
# if array[i+1] == 'M':
# if array[i+2] == ',':
# self.a += 1
# print(self.a)
# print(self.b)
# n=int(input())
# for i in range(n):
# array = input().split()
# x = mf(array)
# class SNS:
# def __init__(self, data):
# self.data = data
#
# def process(self):
# self.F = 0
# self.M = 0
# for i in range(len(self.data)):
# if self.data[i][1] == 'F':
# self.F += 1
# else:
# self.M += 1
# def showResult(self):
# print(self.M)
# print(self.F)
#
# n = int(input())
# data = []
#
# for i in range(n):
# v = input().split(',')
# data.append(v)
#
# control = SNS(data)
# control.process()
# control.showResult()
# class AGE:
# def __init__(self, data):
# self.data = data
# def average(self):
# self.A = 0
# for i in range(len(self.data)):
# self.A += int(self.data[i][2])
# def result(self):
# print('%.2f' %((self.A)/n))
# n = int(input())
# data=[]
# for i in range(n):
# v = input().split(',')
# data.append(v)
# c = AGE(data)
# c.average()
# c.result()
# class Friends:
# def __init__(self,data):
# self.data = data
# n=int(input())
# data=[]
# for i in range(n):
# v=input().split()
0
0
5
alexhwdo
2023년 2월 04일
In 소스 코드 제출
# n=int(input())
# a=0
# m=1
# n-=1
# while n>0:
# m+=1
# n-=m
# if n%m==0:
# a+=1
# print(a)
data=[]
k,n=input().split()
k=int(k)
n=int(n)
for i in range(k):
data=input().split()
for i in range(n-k-1):
for j in range(k):
data[k+i]+=data[j]
print(data[n])
0
0
3
alexhwdo
2023년 1월 14일
In 소스 코드 제출
# data = []
# for i in range(5):
# v = []
# for i in range(5):
# v.append(0)
# data.append(v)
# data=[]
# w,h=input().split()
# w=int(w)
# h=int(h)
# n=int(input())
# for i in range(120):
# k=[]
# for j in range(120):
# k.append(0)
# data.append(k)
# for i in range(n):
# l,d,x,y=input().split()
# l=int(l)
# d=int(d)
# x=int(x)-1
# y=int(y)-1
# if d==0:
# for j in range(l):
# data[x][y+j]=1
# else:
# for j in range(l):
# data[x+j][y]=1
# for i in range(h):
# for j in range(w):
# print(data[i][j],end=' ')
# print()
# data=[]
# for i in range(12):
# data.append([])
# for j in range(12):
# data[i].append(0)
# for i in range(10):
# k=input().split()
# for j in range(10):
# data[i+1][j+1]=int(k[j])
# x=2
# y=2
# while True:
# if data[x][y]==0:
# data[x][y]=9
# elif data[x][y]==2:
# data[x][y]=9
# break
# if (x==9 and y==9) or (data[x][y+1]==1 and data[x+1][y]==1):
# break
# if data[x][y+1]!=1:
# y+=1
# elif data[x+1][y]!=1:
# x+=1
# for i in range(1,11):
# for j in range(1,11):
# print(data[i][j],end=' ')
# print()
# def version(x, y):
# print('Hello V', x+y)
#
# def rec(n):
# if n == 1:
# return 1
# return n + rec(n-1)
#
# def douv():
# return 10, 20
#
# version(10, 20)
# print(rec(5))
# print(douv()[1])
# n=int(input())
# def points(k):
# if k==1:
# return 5
# return points(k-1)+(k*3+1)
# print(points(n))
# n=int(input())
# def f(r):
# if
# print(f(n))
0
0
6
alexhwdo
2023년 1월 07일
In 소스 코드 제출
# n=int(input())
# k=input().split()
# k.reverse()
# for i in range(n):
# print(k[i],end=' ')
# n=int(input())
# k=input().split()
# x=int(k[0])
# for i in range(n):
# if x>int(k[i]):
# x=int(k[i])
# print(x)
# next = []
# for i in range(25):
# next.append([])
# for j in range(25):
# next[i].append(0)
# for i in range(25):
# for j in range(25):
# k = input().split()
# for i in range(25):
# for j in range(25):
# next[i][j] = k[i][j+1]+k[i][j-1]+k[i+1][j]+k[i-1][j]+k[i-1][j-1]+k[i-1][j+1]+k[i+1][j-1]+k[i+1][j+1]
# if k[i][j] == 0:
# if next[i][j] == 3:
# next[i][j] = 1
# else:
# if next[i][j] <= 1 or 4 <= next[i][j]:
# next[i][j] = 0
# else:
# next[i][j] = 1
# for i in range(25):
# for j in range(25):
# print(next[i][j], end=' ')
# print()
# def summation(a, b):
# x = a + b
# return x
#
# print(summation(10, 20))
# n=[0]*10
# str=input()
# k=list(str)
# def find():
# for i in range(1, 11):
# if k[i]=='t':
# n[i]=1
# print(n)
# print(k)
# for i in range(10):
# if n[i]==1:
# print(i)
0
0
4
alexhwdo
2022년 12월 17일
In 소스 코드 제출
# output
# print('Hello')
#
# print('Hello', end=' ')
# print('World')
#
# print('Hello', 'World', 'Apple', sep='--')
#print("Hello")
#print('Hello','World')
# print('Hello')
# print("World")
#print("'Hello'")
#print('"Hello World"')
#print("\"!@#$%^&*()\'")
#print('\"C:\\Download\\\'hello\'.py\"')
#print('print(\"Hello\\nWorld\")')
# input
# x = input()
# print(x, type(x))
#
# x = int(x)
# print(x, type(x))
# x = int(input())
# print(x, type(x))
# x, y = input().split(':')
# print(x, y)
# x = input()
# y = input()
# print(x, y)
# x = input()
# print(x)
#
# x = ord(x)
# print(x)
#
# x = chr(x)
# print(x)
# x=input()
# print(x)
# x=int(input())
# print(x)
# x=float(input())
# print(x)
# x=int(input())
# y=int(input())
# print(x)
# print(y)
# x=input()
# y=input()
# print(y)
# print(x)
# x=input()
# print(x)
# print(x)
# print(x)
# x, y=input().split( )
# x=int(x)
# y=int(y)
# print(x)
# print(y)
# x,y=input().split()
# print(y,x)
# x=input()
# print(x,x,x)
# x,y=input().split(':')
# print(x,y,sep=':')
# x,y,z=input().split('.')
# # print(z,y,x,sep='-')
# x,y=input().split('-')
# print(x,y,sep='')
# x=input()
# print(x[0])
# print(x[1])
# print(x[2])
# print(x[3])
# print(x[4])
# x=input()
# print(x[0:2],x[2:4],x[4:6])
# x,y,z=input().split(":")
# print(y)
# x1,x2=input().split(' ')
# s=x1+x2
# print(s)
# operator
# x,y=input().split(' ')
# x=int(x)
# y=int(y)
# print(x+y)
# x=float(input())
# y=float(input())
# print(x+y)
# a=int(input())
# print('%x'%a)
# a=int(input())
# print('%X'%a)
# a=int(input(),16)
# print('%o'%a)
# x=ord(input())
# print(x)
# x=int(input())
# print(chr(x))
# x=int(input())
# print(-x)
# x=ord(input())
# print(chr(x+1))
# x,y=input().split(' ')
# x=int(x)
# y=int(y)
# print(x-y)
# x,y=input().split(' ')
# x=float(x)
# y=float(y)
# print(x*y)
# x,y=input().split()
# print(x*int(y))
# x=input()
# y=input()
# print(int(x)*y)
# x,y=input().split()
# x=int(x)
# y=int(y)
# print(x**y)
# x,y=input().split()
# x=float(x)
# y=float(y)
# print(x**y)
# x,y=input().split()
# x=int(x)
# y=int(y)
# print(x//y)
# x,y=input().split()
# x=int(x)
# y=int(y)
# print(x%y)
# x=float(input())
# print(format(x,".2f"))
# x,y=input().split()
# x=float(x)
# y=float(y)
# print(format(x/y,".3f"))
# x,y=input().split()
# x=int(x)
# y=int(y)
# print(x+y)
# print(x-y)
# print(x*y)
# print(x//y)
# print(x%y)
# print(format(x/y,".2f"))
# print(2**3)
# x,y,z=input().split()
# x=int(x)
# y=int(y)
# z=int(z)
# print(x+y+z,format((x+y+z)/3,".2f"))
# x=int(input())
# print(x<<1)
# x,y=input().split()
# x=int(x)
# y=int(y)
# print(x<<y)
# x,y=input().split()
# x=int(x)
# y=int(y)
# print(x<y)
# x,y=input().split()
# x=int(x)
# y=int(y)
# print(x==y)
# x,y=input().split()
# x=int(x)
# y=int(y)
# print(x<=y)
# x,y=input().split()
# print(x!=y)
# x=int(input())
# print(bool(x))
# x=int(input())
# print(not bool(x))
# x,y=input().split()
# x=int(x)
# y=int(y)
# print(bool(x) and bool(y))
# x,y=input().split()
# x=int(x)
# y=int(y)
# print(bool(x) or bool(y))
# x,y=input().split()
# x=int(x)
# y=int(y)
# print(not
#(bool(x)==bool(y)))
# x,y=input().split()
# x=int(x)
# y=int(y)
# print((bool(x)==bool(y)))
# x,y=input().split()
# x=int(x)
# y=int(y)
# print(not(x or y))
# x=int(input())
# print(~x)
# x,y=input().split()
# x=int(x)
# y=int(y)
# print(x&y)
# x,y=input().split()
# x=int(x)
# y=int(y)
# print(x|y)
# x,y=input().split()
# x=int(x)
# y=int(y)
# print(x^y)
# condition
# x = 10
# y = 20
#
# print( x-y if x>y else y-x)
# # True / False
# 0: False
# None, 0, [], (), {}
# x = 10
# print(bool(x))
# x = 10
# if x > 5:
# print('VVV')
# print('AAA')
# elif x == 0:
# if x % 2 == 0 and x > 100:
# print('asdwdrf')
# print('asdasd')
# elif x == 5:
# print('asdasdasdwd')
# else:
# print('~~~')
# x,y=input().split()
# x=int(x)
# y=int(y)
# print(x if x>y else y)
# x,y,z=input().split()
# x=int(x)
# y=int(y)
# z=int(z)
# print(z if ((y if x>y else x)>z) else (y if x>y else x))
# a,b,c=input().split()
# a=int(a)
# b=int(b)
# c=int(c)
# if a%2==0:
# print(a)
# if b%2==0:
# print(b)
# if c%2==0:
# print(c)
# a,b,c=input().split()
# a=int(a)
# b=int(b)
# c=int(c)
# if a%2==0:
# print('even')
# else:
# print('odd')
# if b%2==0:
# print('even')
# else:
# print('odd')
# if c%2==0:
# print('even')
# else:
# print('odd')
# x=int(input())
# if x<0 :
# if x%2==0 :
# print('A')
# else :
# print('B')
# else :
# if x%2==0 :
# print('C')
# else :
# print('D')
# x=int(input())
# if x>=90:
# print('A')
# else:
# if x>=70:
# print('B')
# else:
# if x>=40:
# print('C')
# else:
# print('D')
# loop
# for i in range(10):
# print(i)
# 0 ~ 9
# for i in range(5, 10):
# print(i)
#
# for i in range(10, 5, -1):
# print(i)
# for i in range(1, 100, 2):
# print(i)
#
# # while a > b:
# # while True:
#
# data = [10, 20, 50, 30, 40]
# # for i in range(len(data)):
# for i in data:
# print(i)
# for i in range(5):
# for j in range(5):
# print('*', end='')
# print()
# x=int(input())
# for i in range(x):
# for j in range(i+1):
# print('*',end='')
# print()
# x=int(input())
# for i in range(x):
# for j in range(x-i):
# print('*',end='')
# print()
# x=int(input())
# for i in range(x):
# for j in range(i):
# print(' ',end='')
# for k in range(x-i):
# print('*',end='')
# print()
# x=int(input())
# for i in range(x):
# for j in range(i+1):
# print('*',end='')
# print()
# for i in range(x):
# for j in range(x-i-1):
# print('*',end='')
# print()
# x=int(input())
# for i in range(1,x+1,2):
# for j in range((x-i)//2):
# print(' ',end='')
# for k in range(i):
# print('*',end='')
# print()
# list
# data = []
# data.append(10)
# data.append('hello')
# data.append(3.141592)
#
# print(data)
#
# for i in range(len(data)):
# print(data[i], end=' ')
#
# data.sort()
# x=int(input())
# for i in range(x):
# data=[]
# data.sort()
# if
# data=[]
# data.append(100)
# data.append(1)
# data.append(10)
# data.sort()
# print(data)
# data=[13,5,6,8]
# data.insert()
# print(data)
# x=int(input())
# data=input().split()
# for i in range(x):
# for j in range(x):
# print(data[i+j-x], end=' ')
# print()
#sum(data)
# x=int(input())
# data=[]
# for i in range(x-1):
# v = int(input())
# data.append(v)
# total = sum(data)
# for i in range(x+1):
# total-=i
# print(-total)
# v = input()
# data = [0] * 26
#
# for i in range(len(v)):
# if ord(v[i]) >= ord('a') and ord(v[i]) <= ord('z'):
# x = ord(v[i]) - 97
# data[x] += 1
# print(x)
#
# for i in range(26):
# print(chr(i+97), ':', data[i], sep = '')
# x=int(input())
# data=[0]*100000000
# i=int(0)
# if x==0:
# print(0)
# while x>1:
# data[i]=x%2
# x=x//2
# i+=1
# print(data.reverse(),end='')
# data = []
#
# x = int(input())
# while True:
# data.append(x%2)
# x = x//2
# if x ==0:
# break
# for i in range(len(data)-1,-1,-1):
# print(data[i],end='')
# x=int(input())
# data=input().split()
# arr=[0]*24
# for i in range(x):
# arr[int(data[i])-1]+=1
# for i in range(23):
# print(arr[i],end=' ')
# n = 5
#
# data = []
# for i in range(n):
# v = []
# for j in range(n):
# v.append(0)
# data.append(v)
#
# print(data)
# h=int(input())
# w=int(input())
# n=int(input())
# l=int(input())
# d=int(input())
# data=input().split()
# function
# recursion
# class
0
0
5
alexhwdo
더보기
bottom of page