Submission details
Task:WA on Stone Game
Sender:Giaco
Submission time:2025-11-24 16:27:47 +0200
Language:Rust (2021)
Status:READY
Result:
Test results
testverdicttime
#10.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::c01::task2();
    // homework::hw9::task1();
    // println!("{}", "-".repeat(20));
}
// */

 fn main() {
     println!("2 4");
 }

Test details

Test 1

Verdict:

input
2

correct output
1 1

user output
2 4