提出 #19962717


ソースコード 拡げる

#include <bits/stdc++.h>
#define ll long long
#define ft first
#define sec second
#define pb push_back
#define pr pair<int,int>
#define ISCC ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
using namespace std;
int t ,n ,m ,l ,r;
vector<int> a;
int main() 
{	
	cin>>n>>m;
	for(int i=0 ;i<n ;i++)
	{
		cin>>t;
		if(t!=m) a.pb(t);
	} 
	for(auto v:a) cout<<v<<' ';
	return 0;
}

提出情報

提出日時
問題 B - Remove It
ユーザ ck1080012
言語 C++ (GCC 9.2.1)
得点 200
コード長 393 Byte
結果 AC
実行時間 52 ms
メモリ 3828 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 2
AC × 14
セット名 テストケース
Sample sample_01.txt, sample_02.txt
All handmade_00.txt, handmade_01.txt, random_00.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, sample_01.txt, sample_02.txt
ケース名 結果 実行時間 メモリ
handmade_00.txt AC 11 ms 3424 KiB
handmade_01.txt AC 3 ms 3528 KiB
random_00.txt AC 42 ms 3524 KiB
random_01.txt AC 52 ms 3756 KiB
random_02.txt AC 49 ms 3712 KiB
random_03.txt AC 51 ms 3712 KiB
random_04.txt AC 49 ms 3828 KiB
random_05.txt AC 16 ms 3680 KiB
random_06.txt AC 36 ms 3520 KiB
random_07.txt AC 10 ms 3728 KiB
random_08.txt AC 26 ms 3648 KiB
random_09.txt AC 41 ms 3696 KiB
sample_01.txt AC 8 ms 3560 KiB
sample_02.txt AC 2 ms 3520 KiB