ྫʣࣗવ a , b͕༩͑ΒΕ·͢ɻ
a ͱ b ͷ͕ૉͳΒYes, ૉҎ
֎ͳΒNoΛग़ྗ͍ͯͩ͘͠͞ɻ
(a, b < 1000)
Slide 6
Slide 6 text
Rustacean͕ڝϓϩΛ͖͢ཧ༝
• ࡞Γ͍ͨͷ͕ͳ͕ͯ͋͘Δ
• ڥߏஙෆཁ
• Rustಛ༗ͳ͜ͱҰ௨Γ৮ΕΒΕΔ
• String vs VecͳͲจࣈྻͷѻ͍
• ύλʔϯϚονɺmap().collect()ɺॴ༗ݖ
• ࣮ߦ ≒ C++
Slide 7
Slide 7 text
RustͰڝϓϩ͢Δͱ͖ͷҙ
• ඪ४ೖྗ
use std::io::*;
use std::str::FromStr;
fn read() -> T {
let stdin = stdin();
let stdin = stdin.lock();
let token: String = stdin
.bytes()
.map(|c| c.expect("failed to read char") as char)
.skip_while(|c| c.is_whitespace())
.take_while(|c| !c.is_whitespace())
.collect();
token.parse().ok().expect("failed to parse token")
}
https://qiita.com/tubo28/items/
e6076e9040da57368845#%E5%85%A5%E5%87%BA%E5%8A%9B