Submission #1589021


Source Code Expand

fn main() {
  let (a,b): (usize, usize) = read_tuple();  
  println!("{} {}", b, a);
}

fn read_tuple<T1: std::str::FromStr, T2: std::str::FromStr>() -> (T1, T2) {
  let mut buf = String::new();
  std::io::stdin().read_line(&mut buf).ok();
  let mut it = buf.trim().split_whitespace();
  let x = it.next().unwrap().parse::<T1>().ok().unwrap();
  let y = it.next().unwrap().parse::<T2>().ok().unwrap();
  (x, y)
}

Submission Info

Submission Time
Task A - スワップ
User aimy
Language Rust (1.15.1)
Score 100
Code Size 424 Byte
Status AC
Exec Time 2 ms
Memory 4352 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 8
Set Name Test Cases
All sample_01.txt, sample_02.txt, test_13_69.txt, test_16_44.txt, test_40_40.txt, test_49_31.txt, test_51_74.txt, test_83_60.txt
Case Name Status Exec Time Memory
sample_01.txt AC 2 ms 4352 KB
sample_02.txt AC 2 ms 4352 KB
test_13_69.txt AC 2 ms 4352 KB
test_16_44.txt AC 2 ms 4352 KB
test_40_40.txt AC 2 ms 4352 KB
test_49_31.txt AC 2 ms 4352 KB
test_51_74.txt AC 2 ms 4352 KB
test_83_60.txt AC 2 ms 4352 KB