提出 #37697885


ソースコード 拡げる

#include <iostream>
#include <algorithm>

int main()
{
    std::string input, output;
    std::cin >> input;
    std::cin >> input;

    for (auto itr=input.begin(); itr!=input.end(); ++itr)
    {
        if (std::find(itr+1, input.end(), *itr) == input.end())
        {
            output.push_back(*itr);
        }
    }

    std::cout << output;
    return 0;
}

提出情報

提出日時
問題 B - 上書き
ユーザ uu_naoki
言語 C++ (GCC 9.2.1)
得点 8
コード長 385 Byte
結果 AC
実行時間 6 ms
メモリ 3636 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 8 / 8
結果
AC × 3
AC × 26
セット名 テストケース
Sample sample_01.txt, sample_02.txt, sample_03.txt
All hand_01.txt, hand_02.txt, hand_03.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, random_17.txt, random_18.txt, random_19.txt, random_20.txt, sample_01.txt, sample_02.txt, sample_03.txt
ケース名 結果 実行時間 メモリ
hand_01.txt AC 6 ms 3520 KiB
hand_02.txt AC 2 ms 3520 KiB
hand_03.txt AC 2 ms 3612 KiB
random_01.txt AC 2 ms 3540 KiB
random_02.txt AC 3 ms 3596 KiB
random_03.txt AC 2 ms 3556 KiB
random_04.txt AC 2 ms 3592 KiB
random_05.txt AC 2 ms 3436 KiB
random_06.txt AC 2 ms 3540 KiB
random_07.txt AC 1 ms 3612 KiB
random_08.txt AC 3 ms 3544 KiB
random_09.txt AC 2 ms 3484 KiB
random_10.txt AC 2 ms 3480 KiB
random_11.txt AC 2 ms 3520 KiB
random_12.txt AC 2 ms 3612 KiB
random_13.txt AC 2 ms 3552 KiB
random_14.txt AC 3 ms 3560 KiB
random_15.txt AC 2 ms 3436 KiB
random_16.txt AC 2 ms 3572 KiB
random_17.txt AC 2 ms 3636 KiB
random_18.txt AC 2 ms 3536 KiB
random_19.txt AC 2 ms 3540 KiB
random_20.txt AC 2 ms 3596 KiB
sample_01.txt AC 3 ms 3556 KiB
sample_02.txt AC 2 ms 3564 KiB
sample_03.txt AC 3 ms 3564 KiB