Submission #19959358
Source Code Expand
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
/*
* @Author: Luisvacson
* @LastEditors: Luisvacson
* @Descriptions: None
* @Date: 2021-02-06 20:03:57
* @LastEditTime: 2021-02-06 20:04:53
* @FilePath: \C++\Practice\ABC191B.cpp
*/
#include <bits/stdc++.h>
using namespace std;
int n, x;
int a[100005];
signed main() {
scanf("%d%d", &n, &x);
register int i;
for (i = 1; i <= n; ++i) scanf("%d", &a[i]);
for (i = 1; i <= n; ++i)
if (a[i] ^ x) printf("%d ", a[i]);
return puts(""), 0;
}
Submission Info
Submission Time
2021-02-06 12:05:13
Task
B - Remove It
User
Luisvacson
Language
C++ (GCC 9.2.1)
Score
200
Code Size
492 Byte
Status
AC
Exec Time
33 ms
Memory
4120 KB
Compile Error
./Main.cpp: In function ‘int main()’:
./Main.cpp:16:18: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
16 | register int i;
| ^
./Main.cpp:15:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
15 | scanf("%d%d", &n, &x);
| ~~~~~^~~~~~~~~~~~~~~~
./Main.cpp:18:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
18 | for (i = 1; i <= n; ++i) scanf("%d", &a[i]);
| ~~~~~^~~~~~~~~~~~~
Judge Result
Set Name
Sample
All
Score / Max Score
0 / 0
200 / 200
Status
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
6 ms
3632 KB
handmade_01.txt
AC
3 ms
3764 KB
random_00.txt
AC
18 ms
3904 KB
random_01.txt
AC
33 ms
4104 KB
random_02.txt
AC
31 ms
4120 KB
random_03.txt
AC
32 ms
4108 KB
random_04.txt
AC
33 ms
3976 KB
random_05.txt
AC
12 ms
3636 KB
random_06.txt
AC
17 ms
3832 KB
random_07.txt
AC
8 ms
3620 KB
random_08.txt
AC
20 ms
3896 KB
random_09.txt
AC
28 ms
4012 KB
sample_01.txt
AC
6 ms
3728 KB
sample_02.txt
AC
2 ms
3652 KB