Please sign in first.
Submission #51450330
Source Code Expand
use proconio::input;
fn main() {
input! {
a: usize,
b: usize,
};
let ans = (a == 1 && b == 10) || (a + 1 == b);
println!("{}", if ans { "Yes" } else { "No" });
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Edge Checker |
| User | bouzuya |
| Language | Rust (rustc 1.70.0) |
| Score | 100 |
| Code Size | 195 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 2016 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example0.txt, example1.txt, example2.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, example0.txt, example1.txt, example2.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 000.txt | AC | 1 ms | 1932 KiB |
| 001.txt | AC | 1 ms | 1856 KiB |
| 002.txt | AC | 1 ms | 2000 KiB |
| 003.txt | AC | 1 ms | 1848 KiB |
| 004.txt | AC | 1 ms | 1956 KiB |
| 005.txt | AC | 1 ms | 2016 KiB |
| 006.txt | AC | 1 ms | 1872 KiB |
| 007.txt | AC | 0 ms | 1864 KiB |
| 008.txt | AC | 1 ms | 2016 KiB |
| 009.txt | AC | 1 ms | 2000 KiB |
| 010.txt | AC | 1 ms | 1856 KiB |
| 011.txt | AC | 1 ms | 1996 KiB |
| 012.txt | AC | 1 ms | 1936 KiB |
| example0.txt | AC | 1 ms | 1808 KiB |
| example1.txt | AC | 1 ms | 1740 KiB |
| example2.txt | AC | 1 ms | 1824 KiB |