提出 #39572827


ソースコード 拡げる

use proconio::input;
use proconio::marker::Chars;
fn main() {
    input! {
        n:Chars,
    }
    for i in 0..n.len() {
        if n[i] == '0' {
            print!("1");
        } else {
            print!("0");
        }
    }
}

提出情報

提出日時
問題 A - flip
ユーザ sou31415
言語 Rust (1.42.0)
得点 100
コード長 248 Byte
結果 AC
実行時間 7 ms
メモリ 2028 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 8
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_small_03.txt, 01_small_04.txt, 02_max_05.txt, 02_max_06.txt, 02_max_07.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 7 ms 2028 KiB
00_sample_01.txt AC 1 ms 1988 KiB
00_sample_02.txt AC 2 ms 1988 KiB
01_small_03.txt AC 1 ms 2000 KiB
01_small_04.txt AC 1 ms 1956 KiB
02_max_05.txt AC 1 ms 1884 KiB
02_max_06.txt AC 1 ms 1988 KiB
02_max_07.txt AC 1 ms 2016 KiB