結果

問題 No.841 8/32
ユーザー nao22b
提出日時 2019-07-20 19:45:27
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 467 bytes
コンパイル時間 12,907 ms
コンパイル使用メモリ 399,588 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-30 04:14:04
合計ジャッジ時間 14,293 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #


fn main() {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    let txt = s.trim();
    let sp: Vec<&str> = txt.split(" ").collect();
    let fst = sp[0];
    let snd = sp[1];
    if is_week_end(&fst) && is_week_end(&snd) {
        println!("8/33")
    } else if is_week_end(&fst) {
        println!("8/32");
    } else {
        println!("8/31");
    }
}
fn is_week_end(txt: &str) -> bool {
    return txt == "Sat" || txt == "Sun"
}



0