목록Solution (295)
개발자 뺚
시간 제한 : 1 초 메모리 제한 : 32 MB 문제 고려대학교는 사랑입니다. 출력 첫째 줄에 “고려대학교”를 출력하세요. print("고려대학교")
시간 제한 : 2 초 메모리 제한 : 256 MB 문제 카시오 계산기는 만능 계산기이다. 시험을 한 번이라도 쳐본 일곽인이라면, 이 카시오의 소중함에 대해서 뼈저리게 느껴보았을 것이다. 하지만, 이런 카시오에도 함정이 있다. 바로, 카시오 계산기는 배터리를 통해 돌아간다는 것이다. 송찬이는 시험을 치다가 갑자기 계산기의 배터리가 나가버렸다. 그래서 선생님께 배터리를 달라고 요구했는데, 요구하고 보니 카시오 계산기의 배터리가 어떤 종류인지 말을 안 해버렸다! 과연 선생님은 송찬이가 필요한 배터리 종류를 들고 왔을까? 입력 송찬이가 필요한 배터리 N과 선생님이 가져온 배터리 M이 입력된다. N과 M은 둘다 최대 10자리 정수까지 들어올 수 있다. 출력 송찬이가 원한 배터리면 1을, 그 외엔 0을 출력한다. ..
시간 제한 : 1 초 메모리 제한 : 128 MB 문제 Wyobraźmy sobie przez chwilę, że w tym roku konkurs SKI'10 składa się z n punktowanych rund i jednej rundy próbnej. Ile zgodnie z regulaminem może się pojawić zadań w czasie całych zawodów? 입력 W pierwszej i jedynej linii znajduje się liczba naturalna n (1
시간 제한 : 1 초 메모리 제한 : 128 MB 문제 Julka zaskoczyła wczoraj w przedszkolu swoją wychowawczynię rozwiązując następującą zagadkę: Klaudia i Natalia mają razem 10 jabłek, ale Klaudia ma o 2 jabłka więcej niż Natalia. Ile jabłek ma każda z dziewczynek? Julka odpowiedziała bez namysłu: Klaudia ma sześć jabłek, natomiast Natalia ma cztery jabłka. Wychowywaczyni postanowiła sprawdzić, czy odpowiedź Julki n..
시간 제한 : 1 초 메모리 제한 : 256 MB 문제 JOI군은 카드 게임을 하고 있다. 이 카드 게임은 5회의 게임으로 진행되며, 그 총점으로 승부를 하는 게임이다. JOI군의 각 게임의 득점을 나타내는 정수가 주어졌을 때, JOI군의 총점을 구하는 프로그램을 작성하라. 입력 표준 입력에서 다음과 같은 데이터를 읽어온다.i 번째 줄(1 ≤ i ≤ 5)에는 정수 Ai가 적혀있다. 이것은 i번째 게임에서의 JOI군의 점수를 나타낸다. 출력 표준 출력에 JOI군의 총점을 한 줄로 출력하라. 서브태스크 번호배점제한1200 ≤ Ai ≤ 10.280추가적인 제약 조건이 없다.scores = [int(input()) for _ in range(5)] print(sum(scores))
시간 제한 : 1 초 메모리 제한 : 128 MB 문제 Given two integers, calculate and output their sum. 입력 The input contains several test cases. The first line contains and integer t (t ≤ 100) denoting the number of test cases. Then t tests follow, each of them consisiting of two space separated integers x and y (−10^9 ≤ x, y ≤ 10^9). 출력 For each test case output output the sum of the corresponding integers. n = in..
시간 제한 : 1 초 메모리 제한 : 128 MB 문제 In the story Goldilocks and the Three Bears, each bear had a bowl of porridge to eat while sitting at his/her favourite chair. What the story didn’t tell us is that Goldilocks moved the bowls around on the table, so the bowls were not at the right seats anymore. The bowls can be sorted by weight with the lightest bowl being the Baby Bear’s bowl, the medium bowl bei..
시간 제한 : 1 초 메모리 제한 : 128 MB 문제 A pyramid of blocks is constructed by first building a base layer of n blocks and then adding n-1 blocks to the next layer. This process is repeated until the top layer only has one block. You must calculate the number of blocks needed to construct a pyramid given the size of the base. For example, a pyramid that has a base of size 4 will need a total of 10 blocks...