Submission #73582764
Source Code Expand
#[allow(unused_imports)]
use {
ac_library::{ModInt998244353 as Mint, *},
itertools::{iproduct, Itertools},
proconio::{fastout, input, marker::*},
std::collections::*,
};
#[allow(unused_macros)]
macro_rules! debug {
($($a:expr),* $(,)*) => {
#[cfg(debug_assertions)]
eprintln!(concat!($("| ", stringify!($a), "={:?} "),*, "|"), $(&$a),*);
};
}
#[fastout]
fn main() {
input! {
n: usize,s:String
}
if s.ends_with("tea") {
println!("Yes");
} else {
println!("No");
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - I'm a teapot |
| User | macaroni5708 |
| Language | Rust (rustc 1.89.0) |
| Score | 100 |
| Code Size | 576 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 2088 KiB |
Compile Error
warning: unused variable: `n` --> src/main.rs:19:9 | 19 | n: usize,s:String | ^ help: if this is intentional, prefix it with an underscore: `_n` | = note: `#[warn(unused_variables)]` on by default
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 02_corner_00.txt, 02_corner_01.txt, 02_corner_02.txt, 02_corner_03.txt, 02_corner_04.txt, 02_corner_05.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | AC | 1 ms | 1960 KiB |
| 00_sample_01.txt | AC | 1 ms | 1976 KiB |
| 00_sample_02.txt | AC | 1 ms | 2004 KiB |
| 00_sample_03.txt | AC | 1 ms | 1892 KiB |
| 01_random_00.txt | AC | 1 ms | 1820 KiB |
| 01_random_01.txt | AC | 1 ms | 1836 KiB |
| 01_random_02.txt | AC | 1 ms | 2048 KiB |
| 01_random_03.txt | AC | 1 ms | 1960 KiB |
| 01_random_04.txt | AC | 1 ms | 2012 KiB |
| 01_random_05.txt | AC | 1 ms | 1976 KiB |
| 02_corner_00.txt | AC | 1 ms | 2020 KiB |
| 02_corner_01.txt | AC | 1 ms | 2064 KiB |
| 02_corner_02.txt | AC | 1 ms | 2088 KiB |
| 02_corner_03.txt | AC | 1 ms | 1912 KiB |
| 02_corner_04.txt | AC | 1 ms | 1912 KiB |
| 02_corner_05.txt | AC | 1 ms | 1984 KiB |