Submission #1339936
Source Code Expand
use std::io; fn main() { let mut line = String::new(); io::stdin().read_line(&mut line); let mut line = line.split_whitespace(); let r = line.next().unwrap().parse::<usize>().unwrap(); let g = line.next().unwrap().parse::<usize>().unwrap(); let b = line.next().unwrap().parse::<usize>().unwrap(); let n = r * 100usize + g * 10usize + b; if n % 4 == 0 { println!("YES"); } else { println!("NO"); } }
Submission Info
Submission Time | |
---|---|
Task | A - RGB Cards |
User | mk10 |
Language | Rust (1.15.1) |
Score | 100 |
Code Size | 479 Byte |
Status | AC |
Exec Time | 2 ms |
Memory | 4352 KB |
Compile Error
warning: unused result which must be used, #[warn(unused_must_use)] on by default --> ./Main.rs:6:5 | 6 | io::stdin().read_line(&mut line); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | s1.txt, s2.txt |
All | in1.txt, in2.txt, in3.txt, in4.txt, in5.txt, s1.txt, s2.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
in1.txt | AC | 2 ms | 4352 KB |
in2.txt | AC | 2 ms | 4352 KB |
in3.txt | AC | 2 ms | 4352 KB |
in4.txt | AC | 2 ms | 4352 KB |
in5.txt | AC | 2 ms | 4352 KB |
s1.txt | AC | 2 ms | 4352 KB |
s2.txt | AC | 2 ms | 4352 KB |