Comparison

AtCoder
IDabc059_b
Time2000ms
Memory256MB
Difficulty
You are given two positive integers $A$ and $B$. Compare the magnitudes of these numbers. ## Constraints * $1 ≤ A, B ≤ 10^{100}$ * Neither $A$ nor $B$ begins with a `0`. ## Input Input is given from Standard Input in the following format: $A$ $B$ [samples]
Samples
Input #1
36
24
Output #1
GREATER

Since $36>24$, print `GREATER`.
Input #2
850
3777
Output #2
LESS
Input #3
9720246
22516266
Output #3
LESS
Input #4
123456789012345678901234567890
234567890123456789012345678901
Output #4
LESS
API Response (JSON)
{
  "problem": {
    "name": "Comparison",
    "description": {
      "content": "You are given two positive integers $A$ and $B$. Compare the magnitudes of these numbers.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc059_b"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given two positive integers $A$ and $B$. Compare the magnitudes of these numbers.\n\n## Constraints\n\n*   $1 ≤ A, B ≤ 10^{100}$\n*   Neither $A$ nor $B$ begins with a `0`.\n\n## Input\n\nInput is give...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments