codeforces-scrape

Codeforces scraped problems and editorials
git clone git://git.laack.co/codeforces-scrape.git
Log | Files | Refs | README

987B.md (1661B)


      1 Source: https://codeforces.com/problemset/problem/987/B
      2 
      3 B. High School: Become Human
      4 
      5 time limit per test
      6 
      7 1 second
      8 
      9 memory limit per test
     10 
     11 256 megabytes
     12 
     13 input
     14 
     15 standard input
     16 
     17 output
     18 
     19 standard output
     20 
     21 Year 2118. Androids are in mass production for decades now, and they do all the work for humans. But androids have to go to school to be able to solve creative tasks. Just like humans before.
     22 
     23 It turns out that high school struggles are not gone. If someone is not like others, he is bullied. Vasya-8800 is an economy-class android which is produced by a little-known company. His design is not perfect, his characteristics also could be better. So he is bullied by other androids.
     24 
     25 One of the popular pranks on Vasya is to force him to compare $x^y$ with $y^x$. Other androids can do it in milliseconds while Vasya's memory is too small to store such big numbers.
     26 
     27 Please help Vasya! Write a fast program to compare $x^y$ with $y^x$ for Vasya, maybe then other androids will respect him.
     28 
     29 Input
     30 
     31 On the only line of input there are two integers $x$ and $y$ ($1 \le x, y \le 10^{9}$).
     32 
     33 Output
     34 
     35 If $x^y \lt y^x$, then print '<' (without quotes). If $x^y \gt y^x$, then print '>' (without quotes). If $x^y = y^x$, then print '=' (without quotes).
     36 
     37 Examples
     38 
     39 Input
     40 
     41 ```
     42 5 8
     43 ```
     44 
     45 Output
     46 
     47 ```
     48 >
     49 ```
     50 
     51 Input
     52 
     53 ```
     54 10 3
     55 ```
     56 
     57 Output
     58 
     59 ```
     60 <
     61 ```
     62 
     63 Input
     64 
     65 ```
     66 6 6
     67 ```
     68 
     69 Output
     70 
     71 ```
     72 =
     73 ```
     74 
     75 Note
     76 
     77 In the first example $5^8 = 5 \cdot 5 \cdot 5 \cdot 5 \cdot 5 \cdot 5 \cdot 5 \cdot 5 = 390625$, and $8^5 = 8 \cdot 8 \cdot 8 \cdot 8 \cdot 8 = 32768$. So you should print '>'.
     78 
     79 In the second example $10^3 = 1000 \lt 3^{10} = 59049$.
     80 
     81 In the third example $6^6 = 46656 = 6^6$.