提出 #31013683


ソースコード 拡げる

#include <bits/stdc++.h>
using namespace std;

int main() {
  string n;
  set<int> digit;
  
  for (int i=0;i<10;i++){
    digit.insert(i);
  }
  
  cin >> n;
  for (int i=0;i<9;i++){
    
    digit.erase(n.at(i) - '0');
  }
  
  cout << *begin(digit) << endl;
}

提出情報

提出日時
問題 A - Lacked Number
ユーザ nullpoint
言語 C++ (GCC 9.2.1)
得点 100
コード長 282 Byte
結果 AC
実行時間 6 ms
メモリ 3608 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 2
AC × 10
セット名 テストケース
Sample example_00.txt, example_01.txt
All example_00.txt, example_01.txt, hand_00.txt, hand_01.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt
ケース名 結果 実行時間 メモリ
example_00.txt AC 6 ms 3564 KiB
example_01.txt AC 2 ms 3564 KiB
hand_00.txt AC 2 ms 3484 KiB
hand_01.txt AC 2 ms 3572 KiB
random_00.txt AC 2 ms 3376 KiB
random_01.txt AC 2 ms 3428 KiB
random_02.txt AC 2 ms 3608 KiB
random_03.txt AC 2 ms 3488 KiB
random_04.txt AC 2 ms 3484 KiB
random_05.txt AC 2 ms 3560 KiB