提出 #51138495
ソースコード 拡げる
use proconio::input;
fn main() {
input! {
s: String,
};
let ans = if s.ends_with("er") { "er" } else { "ist" };
println!("{}", ans);
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - Tires |
| ユーザ | bouzuya |
| 言語 | Rust (rustc 1.70.0) |
| 得点 | 100 |
| コード長 | 160 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 2072 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | sample_01.txt, sample_02.txt, sample_03.txt |
| All | hand_01.txt, hand_02.txt, sample_01.txt, sample_02.txt, sample_03.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| hand_01.txt | AC | 1 ms | 1864 KiB |
| hand_02.txt | AC | 1 ms | 1908 KiB |
| sample_01.txt | AC | 1 ms | 1972 KiB |
| sample_02.txt | AC | 1 ms | 2072 KiB |
| sample_03.txt | AC | 1 ms | 2060 KiB |
| test_01.txt | AC | 1 ms | 1864 KiB |
| test_02.txt | AC | 1 ms | 1916 KiB |
| test_03.txt | AC | 1 ms | 1936 KiB |
| test_04.txt | AC | 1 ms | 1864 KiB |
| test_05.txt | AC | 1 ms | 1796 KiB |
| test_06.txt | AC | 1 ms | 1864 KiB |
| test_07.txt | AC | 1 ms | 2012 KiB |
| test_08.txt | AC | 1 ms | 1916 KiB |
| test_09.txt | AC | 1 ms | 1860 KiB |