python-algorithm
백준 15372 A Simple Problem.
무적김두칠
2022. 11. 30. 01:04
https://www.acmicpc.net/problem/15372
15372번: A Simple Problem.
For each test case, output a single line containing the integer K, the answer for that test case.
www.acmicpc.net
1
2
3
4
5
6
7
8
9
|
import sys
def sol(n):
return n*n
if __name__ == '__main__':
t = int(input())
for _ in range(t):
n = int(sys.stdin.readline())
print(sol(n))
|
cs |
sys.stdin.readline() 입력 받으셔야 시간초과 안떠요
반응형