Submission #46418609
Source Code Expand
use std::cmp::Ordering;
use proconio::{input, marker::Chars};
fn main() {
input! {
a: Chars,
b: Chars,
};
let ans = match a.len().cmp(&b.len()) {
Ordering::Less => Ordering::Less,
Ordering::Equal => a.cmp(&b),
Ordering::Greater => Ordering::Greater,
};
println!(
"{}",
match ans {
Ordering::Less => "LESS",
Ordering::Equal => "EQUAL",
Ordering::Greater => "GREATER",
}
);
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Comparison |
| User | bouzuya |
| Language | Rust (rustc 1.70.0) |
| Score | 200 |
| Code Size | 500 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 2088 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00-00.txt, 00-01.txt, 00-02.txt, 00-03.txt |
| All | 00-00.txt, 00-01.txt, 00-02.txt, 00-03.txt, 01-00.txt, 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 |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00-00.txt | AC | 1 ms | 1856 KiB |
| 00-01.txt | AC | 1 ms | 1844 KiB |
| 00-02.txt | AC | 1 ms | 1924 KiB |
| 00-03.txt | AC | 1 ms | 2060 KiB |
| 01-00.txt | AC | 1 ms | 1856 KiB |
| 01-01.txt | AC | 0 ms | 1932 KiB |
| 01-02.txt | AC | 0 ms | 1912 KiB |
| 01-03.txt | AC | 0 ms | 2088 KiB |
| 01-04.txt | AC | 0 ms | 1796 KiB |
| 01-05.txt | AC | 0 ms | 1848 KiB |
| 01-06.txt | AC | 1 ms | 1920 KiB |
| 01-07.txt | AC | 1 ms | 1884 KiB |
| 01-08.txt | AC | 0 ms | 1824 KiB |
| 01-09.txt | AC | 1 ms | 1916 KiB |