# import sys
#
# limit_number = 100000
# sys.setrecursionlimit(limit_number)
#
# def f(n):
# global a
# if a[n]!=0 :
# return a[n]
#
# if n == 1:
# return 1
# if n == 2:
# return 2
# if n == 3:
# return 4
#
# a[n] = f(n-3) + f(n-2) + f(n-1)
# return a[n]
#
# n = int(input())
# a = [0] * (n+1)
# print(f(n) % 1000)
# def f(n) :
# if n==0 :
# return 0
#
# if n<=26 :
# return chr(n+64)
# else :
# return f(n//27)+f(n-26)
#
# n = int(input())
# print(f(n))
# import sys
# from PyQt5.QtWidgets import QApplication, QWidget
#
# class MyApp(QWidget):
#
# def __init__(self):
# super().__init__()
# self.initUI()
#
# def initUI(self):
# self.setWindowTitle('application')
# self.move(800, 200) # 창 생성 위치
# self.resize(600, 600) # 창 크기 조정
# self.show()
#
#
# if __name__ == '__main__':
# app = QApplication(sys.argv)
# ex = MyApp()
# sys.exit(app.exec_())
#
# import sys
# from PyQt5.QtWidgets import QApplication, QWidget
# from PyQt5.QtGui import QIcon
#
#
# class MyApp(QWidget):
#
# def __init__(self):
# super().__init__()
# self.initUI()
#
# def initUI(self):
# self.setWindowTitle('Icon')
# self.setWindowIcon(QIcon('C:\\Users\\user\\Desktop\\web.png'))
# self.setGeometry(500, 500, 500, 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
# from PyQt5.QtCore import QCoreApplication
#
#
# class MyApp(QWidget):
#
# def __init__(self):
# super().__init__()
# self.initUI()
#
# def initUI(self):
# btn = QPushButton('종료', self)
# btn.move(200, 150)
# btn.resize(btn.sizeHint())
# btn.clicked.connect(QCoreApplication.instance().quit)
#
# self.setWindowTitle('Quit Button')
# self.setGeometry(500, 300, 300, 200)
# self.show()
#
#
# if __name__ == '__main__':
# app = QApplication(sys.argv)
# ex = MyApp()
# sys.exit(app.exec_())
#
# import sys
# from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QToolTip
# from PyQt5.QtGui import QFont
#
#
# class MyApp(QWidget):
#
# def __init__(self):
# super().__init__()
# self.initUI()
#
# def initUI(self):
# QToolTip.setFont(QFont('SansSerif', 10))
# self.setToolTip('This is a <b>QWidget</b> widget')
#
# btn = QPushButton('Button', self)
# btn.setToolTip('This is a <b>QPushButton</b> widget')
# btn.move(50, 50)
# btn.resize(btn.sizeHint())
#
# self.setWindowTitle('Tooltips')
# self.setGeometry(300, 300, 300, 200)
# self.show()
#
#
# if __name__ == '__main__':
# app = QApplication(sys.argv)
# ex = MyApp()
# sys.exit(app.exec_())
# import sys
# from PyQt5.QtWidgets import QApplication, QMainWindow
#
#
# class MyApp(QMainWindow):
#
# def __init__(self):
# super().__init__()
# self.initUI()
#
# def initUI(self):
# self.statusBar().showMessage('Ready')
#
# self.setWindowTitle('Statusbar')
# self.setGeometry(300, 300, 300, 200)
# self.show()
#
#
# if __name__ == '__main__':
# app = QApplication(sys.argv)
# ex = MyApp()
# sys.exit(app.exec_())
# import sys
# from PyQt5.QtWidgets import QApplication, QMainWindow, QAction, qApp
# from PyQt5.QtGui import QIcon
#
#
# class MyApp(QMainWindow):
#
# def __init__(self):
# super().__init__()
# self.initUI()
#
# def initUI(self):
# exitAction = QAction(QIcon('exit.png'), 'Exit', self)
# exitAction.setShortcut('Ctrl+Q')
# exitAction.setStatusTip('Exit application')
# exitAction.triggered.connect(qApp.quit)
#
# self.statusBar()
#
# menubar = self.menuBar()
# menubar.setNativeMenuBar(False)
# filemenu = menubar.addMenu('&File')
# filemenu.addAction(exitAction)
#
# self.setWindowTitle('Menubar')
# self.setGeometry(300, 300, 300, 200)
# self.show()
#
#
# if __name__ == '__main__':
# app = QApplication(sys.argv)
# ex = MyApp()
# sys.exit(app.exec_())
# import sys
# from PyQt5.QtWidgets import QApplication, QMainWindow, QAction, qApp
# from PyQt5.QtGui import QIcon
#
#
# class MyApp(QMainWindow):
#
# def __init__(self):
# super().__init__()
# self.initUI()
#
# def initUI(self):
# printAction = QAction(QIcon('C:\\Users\\user\\Desktop\\print.png'), 'Print', self)
# printAction.setShortcut('Ctrl+O')
# printAction.setStatusTip('Print application')
# printAction.triggered.connect(qApp.quit)
#
# self.statusBar()
#
# self.toolbar = self.addToolBar('Print')
# self.toolbar.addAction(printAction)
#
# self.setWindowTitle('Toolbar')
# self.setGeometry(300, 300, 300, 200)
# self.show()
#
#
# if __name__ == '__main__':
# app = QApplication(sys.argv)
# ex = MyApp()
# sys.exit(app.exec_())
# import sys
# from PyQt5.QtWidgets import QApplication, QWidget, QDesktopWidget
#
#
# class MyApp(QWidget):
#
# def __init__(self):
# super().__init__()
# self.initUI()
#
# def initUI(self):
# self.setWindowTitle('Centering')
# self.resize(500, 350)
# self.center
# self.show()
#
# def center(self):
# qr = self.frameGeometry()
# cp = QDesktopWidget().availableGeometry().center()
# qr.moveCenter(cp)
# self.move(qr.topLeft())
#
#
# if __name__ == '__main__':
# app = QApplication(sys.argv)
# ex = MyApp()
# sys.exit(app.exec_())
# from PyQt5.QtCore import QDate
#
# now = QDate.currentDate()
# print(now.toString())
#
# from PyQt5.QtCore import QDate, Qt
#
# now = QDate.currentDate()
# print(now.toString('d.M.yy'))
# print(now.toString('dd.MM.yyyy'))
# print(now.toString('ddd.MMMM.yyyy'))
# print(now.toString(Qt.ISODate))
# print(now.toString(Qt.DefaultLocaleLongDate))
# import sys
# from PyQt5.QtWidgets import QApplication, QMainWindow
# from PyQt5.QtCore import QDate, Qt
#
#
# class MyApp(QMainWindow):
#
# def __init__(self):
# super().__init__()
# self.date = QDate.currentDate()
# self.initUI()
#
# def initUI(self):
# self.statusBar().showMessage(self.date.toString(Qt.DefaultLocaleShortDate))
#
# self.setWindowTitle('Date')
# self.setGeometry(300, 300, 400, 200)
# self.show()
#
#
# if __name__ == '__main__':
# app = QApplication(sys.argv)
# ex = MyApp()
# sys.exit(app.exec_())
# import sys
# from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QVBoxLayout
#
#
# class MyApp(QWidget):
#
# def __init__(self):
# super().__init__()
# self.initUI()
#
# def initUI(self):
#
# lbl_yello = QLabel('Yello')
# lbl_fuchsia = QLabel('fuchsia')
# lbl_crimson = QLabel('crimson')
#
# lbl_yello.setStyleSheet("color: yello;"
# "background-color: #ffff00;")
# lbl_fuchsia.setStyleSheet("color: fuchsia;"
# "background-color: #ff00ff")
# lbl_crimson.setStyleSheet("color: crimson;"
# "background-color: #dc143c;"
# "border-style: dashed;"
# "border-width: 10px;"
# "border-color: #0000cd")
#
# vbox = QVBoxLayout()
# vbox.addWidget(lbl_yello)
# vbox.addWidget(lbl_fuchsia)
# vbox.addWidget(lbl_crimson)
#
# self.setLayout(vbox)
#
# self.setWindowTitle('Stylesheet')
# self.setGeometry(300, 300, 300, 200)
# self.show()
#
#
# if __name__ == '__main__':
# app = QApplication(sys.argv)
# ex = MyApp()
# sys.exit(app.exec_())
# n =input()
# n=int(n)
# for i in range(n) :
# for j in range(n) :
# if j==0 or i==n-1 or j<i+1 :
# print("*",end='')
# else :
# print(" ",end='')
# print()
'''
i *
* 0 1
** 1 2
*** 2 3
**** 3 4
***** 4 5
i행에서 *은 (i+1)개
'''
# n = input()
# n = int(n)
# for i in range(n,0,-1) :
# for j in range(i) :
# print("*",end='')
#
# print()
# n = input()
# n=int(n)
# for i in range(n,0,-1) :
# for j in range(n-i) :
# print(" ",end='')
# for j in range(i) :
# print("*",end='')
# print()
# n =input()
# n = int(n)
# for i in range(n,0,-1) :
# for j in range(i-1) :
# print(" ",end='')
# for j in range(n) :
# print("*",end='')
# print()
a,b,c=input().split()
a=int(a)
b=int(b)
if c == 'R' :
for i in range(a,0,-1) :
for j in range(i-1) :
print(" ",end='')
for j in range(b) :
print("*",end='')
print()
else :
for i in range(a,0,-1) :
for j in range(b-i) :
print(" ",end='')
for j in range(b) :
print("*",end='')
print()
A
top of page

실제 작동 상태를 확인하려면 라이브 사이트로 이동하세요.
20250730
20250730
댓글 0개
좋아요
댓글(0)
더 이상 게시물에 대한 댓글 기능이 지원되지 않습니다. 자세한 사항은 사이트 소유자에게 문의하세요.
bottom of page


