-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bronze V] Title: Call for Problems, Time: 32 ms, Memory: 31120 KB -B…
…aekjoonHub
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import sys | ||
|
||
# sys.setrecursionlimit(100000) | ||
|
||
|
||
def input(): | ||
return sys.stdin.readline() | ||
|
||
|
||
# main | ||
if __name__ == "__main__": | ||
N = int(input()) | ||
cnt = 0 | ||
for _ in range(N): | ||
if int(input()) % 2 != 0: | ||
cnt += 1 | ||
print(cnt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# [Bronze V] Call for Problems - 32498 | ||
|
||
[문제 링크](https://www.acmicpc.net/problem/32498) | ||
|
||
### 성능 요약 | ||
|
||
메모리: 31120 KB, 시간: 32 ms | ||
|
||
### 분류 | ||
|
||
구현, 수학 | ||
|
||
### 제출 일자 | ||
|
||
2024년 10월 19일 17:50:18 | ||
|
||
### 문제 설명 | ||
|
||
<p>The Call for Problems for the ICPC North America Qualifier (NAQ) has finished, and a number of problems were proposed. The judges voted on the difficulty of each problem. The NAQ does not want to be considered an odd contest, so therefore they refuse to use any problem which has an odd number (not divisible by two) for a difficulty rating.</p> | ||
|
||
<p>Given the difficulty ratings of the candidate problems, how many were excluded by this rule?</p> | ||
|
||
### 입력 | ||
|
||
<p>The first line of input contains a single integer $n$ ($1≤n≤50$), which is the number of candidate problems.</p> | ||
|
||
<p>Each of the next 𝑛n lines contains a single integer $d$ ($0≤d≤100$), which are the difficulty ratings of the $n$ problems.</p> | ||
|
||
### 출력 | ||
|
||
<p>Output a single integer, which is the number of candidate problems excluded by the rule.</p> | ||
|