Submission #55491327
Source Code Expand
Copy
use std::io;fn main() {let mut lines = io::stdin().lines();let line1 = lines.next().unwrap().unwrap();let line2 = lines.next().unwrap().unwrap();let line3 = lines.next().unwrap().unwrap();let a : i32 = line1.parse().unwrap();let mut bc = line2.split_whitespace();let b : i32 = bc.next().unwrap().parse().unwrap();let c : i32 = bc.next().unwrap().parse().unwrap();println!("{} {}", a + b + c, line3);}
use std::io; fn main() { let mut lines = io::stdin().lines(); let line1 = lines.next().unwrap().unwrap(); let line2 = lines.next().unwrap().unwrap(); let line3 = lines.next().unwrap().unwrap(); let a : i32 = line1.parse().unwrap(); let mut bc = line2.split_whitespace(); let b : i32 = bc.next().unwrap().parse().unwrap(); let c : i32 = bc.next().unwrap().parse().unwrap(); println!("{} {}", a + b + c, line3); }
Submission Info
Submission Time | |
---|---|
Task | PracticeA - Welcome to AtCoder |
User | mikecat |
Language | Rust (rustc 1.70.0) |
Score | 100 |
Code Size | 462 Byte |
Status | AC |
Exec Time | 0 ms |
Memory | 2080 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | 00_rnd_01.txt, 00_rnd_02.txt, 00_rnd_03.txt, 00_rnd_04.txt, 00_rnd_05.txt, 00_sample_1.txt, 00_sample_2.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_rnd_01.txt | AC | 0 ms | 2080 KB |
00_rnd_02.txt | AC | 0 ms | 1856 KB |
00_rnd_03.txt | AC | 0 ms | 1892 KB |
00_rnd_04.txt | AC | 0 ms | 1996 KB |
00_rnd_05.txt | AC | 0 ms | 1912 KB |
00_sample_1.txt | AC | 0 ms | 1996 KB |
00_sample_2.txt | AC | 0 ms | 1920 KB |