結果
問題 | No.1027 U+1F4A0 |
ユーザー |
![]() |
提出日時 | 2020-04-18 08:39:29 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 417 bytes |
コンパイル時間 | 10,817 ms |
コンパイル使用メモリ | 390,820 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-03 22:52:43 |
合計ジャッジ時間 | 11,808 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
fn main() { use std::io::Read; let mut input = String::new(); std::io::stdin().read_to_string(&mut input).unwrap(); let mut iter = input.split_whitespace(); let a : usize = iter.next().unwrap().parse().unwrap(); let b : usize = iter.next().unwrap().parse().unwrap(); if a == b || 2 * a == b { print!("4\n") } else if b < a || 2 * a < b { print!("0\n") } else { print!("8\n") } }