QOJ.ac

QOJ

Time Limit: 2 s Memory Limit: 1024 MB

#23919. مقارنة ثلاثية الاتجاهات

Statistics

يُعطى عددان صحيحان ($2$) هما $A, B$.

قارن بين $A$ و $B$: اطبع $-1$ إذا كان $A < B$، واطبع $0$ إذا كان $A = B$، واطبع $1$ إذا كان $A > B$.

القيود

  • $1 \le A \le 1000$.
  • $1 \le B \le 1000$.
  • $A, B$ عددان صحيحان.

الإدخال

يُعطى الإدخال من الإدخال القياسي بالصيغة التالية:

A
B

الإخراج

اطبع $-1$ إذا كان $A < B$، واطبع $0$ إذا كان $A = B$، واطبع $1$ إذا كان $A > B$.

أمثلة

إدخال 1

3
7

إخراج 1

-1

ملاحظة

  • بما أن $3 < 7$، نطبع $-1$.

إدخال 2

10
10

إخراج 2

0

ملاحظة

  • بما أن $10 = 10$، نطبع $0$.

إدخال 3

1000
1

إخراج 3

1

ملاحظة

  • بما أن $1000 > 1$، نطبع $1$.

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.