mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-07-07 18:06:58 +08:00
Update: Rename folder name to XSMOJ
This commit is contained in:
19
XSMOJ/不与指定整数相同的数字之和.cpp
Normal file
19
XSMOJ/不与指定整数相同的数字之和.cpp
Normal file
@ -0,0 +1,19 @@
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
int main(){
|
||||
int n,m,b=0;
|
||||
int a[10000];
|
||||
cin >>n;
|
||||
for(int i=0;i<n;i++){
|
||||
cin >>a[i];
|
||||
}
|
||||
cin >>m;
|
||||
for(int i=0;i<n;i++){
|
||||
if(a[i]==m){
|
||||
b++;
|
||||
}
|
||||
}
|
||||
cout <<b;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user