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

19807번 - Fermat's Last Theorem 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB364426.667%

문제

As you probably know, for all positive integers $a,ドル $b,ドル $c$ and $n$ with $n \ge 3$ the following inequality holds: $a^n + b^n \neq c^n$. But all existing proofs of this fact are hard to verify, so a group of software engineers has decided to write their own proof that will be, in their opinion, easier to verify.

This group has written a program that iterates over all quadruples of positive integers $(a, b, c, n)$ such that $n \ge 3,ドル in increasing order of the maximums of its elements, and in case of equality of maximums --- in the lexicographical order.

Thus first the quadruple $(1, 1, 1, 3)$ will be considered, then the quadruple $(1, 1, 2, 3),ドル and so on. And, for example, the quadruple $(3, 3, 3, 3)$ will be followed by the quadruple $(1, 1, 1, 4)$.

For each quadruple the program compares the values $a^n + b^n$ and $c^n,ドル and prints the corresponding inequality: $a^n + b^n > c^n$ or $a^n + b^n < c^n$.

Now the software engineers want to verify their proof. They ask you to repeat their calculations and output the inequalities printed by their program, from the $l$-th to the $r$-th one, inclusive.

입력

The first line contains two integers $l$ and $r$ (1ドル \le l \le r \le {10}^{12}$; $r - l \le {10}^4$).

출력

Output the part of the printed proof, from the $l$-th inequality to the $r$-th one, each on a separate line. To denote exponentiation, use a caret ('^', the ASCII character with code 94). Don't output any spaces.

제한

예제 입력 1

1 4

예제 출력 1

1^3+1^3>1^3
1^3+1^3<2^3
1^3+1^3<3^3
1^3+2^3>1^3

힌트

출처

Olympiad > Russian Olympiad in Informatics > Russia Team High School Programming Contest > Russia Team High School Programming Contest 2019 C번

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

출처

대학교 대회

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

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