Logo
(追記) (追記ここまで)

24758번 - RSA Mistake 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 1024 MB149655346.491%

문제

An RSA number is a positive integer $n$ that is the product of two distinct primes. For example, 10ドル = 2 \cdot 5$ and 77ドル = 7 \cdot 11$ are RSA numbers whereas 7ドル = 7, 9 = 3 \cdot 3,ドル and 105ドル = 3 \cdot 5 \cdot 7$ are not.

You are teaching a course that covers RSA cryptography. For one assignment problem, you asked students to generate RSA numbers. They were to submit two positive integers $A, B$. Ideally, these would be distinct prime numbers. But some students submitted incorrect solutions. If they were not distinct primes, partial credit can be earned if $A \cdot B$ is not an integer multiple of $k^2$ for any integer $k \geq 2$. If there is an integer $k \geq 2$ such that $k^2$ divides $A \cdot B,ドル then the student receives no credit.

For a pair of positive integers submitted by a student for the assignment, determine if they should receive full credit, partial credit, or no credit for this submission.

Note: In the sixth sample case below, the number 545ドル,528円,636円,581円 \cdot 876,571円,629円,707円$ is divisible by 1ドル,000円,003円^2$ and in the seventh sample case below, the number 431ドル,348円,146円,441円 \cdot 3$ is divisible by 656ドル,771円^2$.

입력

The input consists of a single line containing two integers $A$ (2ドル \leq A \leq 10^{12}$) and $B$ (2ドル \leq B \leq 10^{12}$), which are the two submitted numbers.

출력

Display if the student should receive full credit, partial credit, or no credit for the submitted numbers.

제한

예제 입력 1

13 23

예제 출력 1

full credit

예제 입력 2

35 6

예제 출력 2

partial credit

예제 입력 3

4 5

예제 출력 3

no credit

예제 입력 4

17 17

예제 출력 4

no credit

예제 입력 5

15 21

예제 출력 5

no credit

예제 입력 6

545528636581 876571629707

예제 출력 6

no credit

예제 입력 7

431348146441 3

예제 출력 7

no credit

힌트

출처

ICPC > Regionals > North America > Rocky Mountain Regional > 2021 Rocky Mountain Regional Contest H번

  • 문제를 만든 사람: Zachary Friggstad
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /