Submission #19962717


Source Code Expand

#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;
}

Submission Info

Submission Time
Task B - Remove It
User ck1080012
Language C++ (GCC 9.2.1)
Score 200
Code Size 393 Byte
Status AC
Exec Time 52 ms
Memory 3828 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 14
Set Name Test Cases
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
Case Name Status Exec Time Memory
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