Submission details
Task:WA on Buzzwords
Sender:Giaco
Submission time:2025-11-24 17:27:01 +0200
Language:Rust (2021)
Status:READY
Result:ACCEPTED
Test results
testverdicttime
#1ACCEPTED0.00 sdetails

Compiler report

warning: unused imports: `Read`, `self`
 --> input/code.rs:1:15
  |
1 | use std::io::{self, Read};
  |               ^^^^  ^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused macro definition: `input`
 --> input/code.rs:3:14
  |
3 | macro_rules! input {
  |              ^^^^^
  |
  = note: `#[warn(unused_macros)]` on by default

warning: 2 warnings emitted

Code

use std::io::{self, Read};

macro_rules! input {
    ($it: expr) => {
        $it.next().unwrap().parse().unwrap()
    };
    ($it: expr, $T: ty) => {
        $it.next().unwrap().parse::<$T>().unwrap()
    };
}
/*
mod classes;
mod homework;

fn main() {
    // println!("{}", "-".repeat(20));
    classes::c23::task2();
    // homework::hw9::task1();
    // println!("{}", "-".repeat(20));
}
// */

 fn main() { println!("zdrsz\n1\nuz vs"); }

Test details

Test 1

Verdict: ACCEPTED

input
2

correct output
fumaarihappo on orgaaninen yhd...

user output
zdrsz
1
uz vs