#836
Bronze IV

MODULO

시간 제한
1s
메모리 제한
32MB
제출
6
정답
5
맞힌 사람
5
정답 비율
83.3%

문제

Given two integers AA and BB, AA modulo BB is the remainder when dividing AA by BB. For example, the numbers 7, 14, 27 and 38 become 1, 2, 0 and 2, modulo 3. Write a program that accepts 10 numbers as input and outputs the number of distinct numbers in the input, if the numbers are considered modulo 42.

입력

The input will contain 10 non-negative integers, each smaller than 1000, one per line.

출력

Output the number of distinct values when considered modulo 42 on a single line.

예제 입력 1

1
2
3
4
5
6
7
8
9
10

예제 출력 1

10

예제 입력 2

42
84
252
420
840
126
42
84
420
126

예제 출력 2

1

예제 입력 3

39
40
41
42
43
44
82
83
84
85

예제 출력 3

6
코드 제출

코드를 제출하려면 로그인이 필요합니다.

로그인
내 제출

제출 내역이 없습니다.

맞은 사람
#순위사용자언어시간메모리코드 길이
9558🥇
이재준
Python9ms8692KB55B
9098🥈
Undefined
Python9ms8912KB129B
9354🥉
서준
Python9ms8992KB112B
86534
고수아
Python12ms8876KB127B
56585
안우진
Python13ms8752KB88B
난이도 투표
Bronze IV1명 투표· 6개월 전
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
#사용자문제결과언어시간메모리코드 길이제출 시간
9558
맞았습니다
Python9ms8692KB55B2026. 07. 19. 15:05
9354
맞았습니다
Python9ms8992KB112B2026. 07. 07. 10:55
9353
틀렸습니다
Python--107B2026. 07. 07. 10:38
9098
맞았습니다
Python9ms8912KB129B2026. 06. 24. 05:50
8653
맞았습니다
Python12ms8876KB127B2026. 05. 31. 11:44
5658
맞았습니다
Python13ms8752KB88B2026. 04. 28. 20:02