#836
MODULO
시간 제한
1s
메모리 제한
32MB
제출
2
정답
2
맞힌 사람
2
정답 비율
100.0%
문제
Given two integers and , modulo is the remainder when dividing by . 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 | 🥇 | 안우진 | Python | 7ms | 8436KB | 88B | |
| 8653 | 🥈 | 고수아 | Python | 7ms | 8508KB | 127B |
난이도 투표
로그인 후 AC 받으면 투표할 수 있습니다.