Submission #36356004
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
int A, B;
cin >> A >> B;
if(A < B) cout << -1 << endl;
else if(A == B) cout << 0 << endl;
else cout << 1 << endl;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - 三方比較 (Three-Way Comparison) |
| User | Hattori8536 |
| Language | C++ (GCC 9.2.1) |
| Score | 100 |
| Code Size | 220 Byte |
| Status | AC |
| Exec Time | 6 ms |
| Memory | 3540 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample-01.txt, sample-02.txt, sample-03.txt |
| All | 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, sample-01.txt, sample-02.txt, sample-03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01-01.txt | AC | 6 ms | 3508 KiB |
| 01-02.txt | AC | 2 ms | 3508 KiB |
| 01-03.txt | AC | 2 ms | 3508 KiB |
| 01-04.txt | AC | 2 ms | 3392 KiB |
| 01-05.txt | AC | 2 ms | 3448 KiB |
| 01-06.txt | AC | 2 ms | 3504 KiB |
| 01-07.txt | AC | 2 ms | 3524 KiB |
| 01-08.txt | AC | 2 ms | 3320 KiB |
| 01-09.txt | AC | 2 ms | 3444 KiB |
| sample-01.txt | AC | 3 ms | 3540 KiB |
| sample-02.txt | AC | 2 ms | 3388 KiB |
| sample-03.txt | AC | 2 ms | 3508 KiB |