#836
Bronze IV
MODULO
시간 제한
1s
메모리 제한
32MB
제출
2
정답
2
맞힌 사람
2
정답 비율
100.0%

문제

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
코드 제출

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

로그인
내 제출
제출 내역이 없습니다.
맞은 사람
#순위사용자언어시간메모리코드 길이
5658🥇
안우진
Python7ms8436KB88B
8653🥈
고수아
Python7ms8508KB127B
난이도 투표
Bronze IV1명 투표· 약 1개월 전
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
#사용자문제결과언어시간메모리코드 길이제출 시간
8653
맞았습니다
Python7ms8508KB127B2026. 05. 31. 11:44
5658
맞았습니다
Python7ms8436KB88B2026. 04. 28. 20:02