mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-07-08 02:13:51 +08:00
Update: Rename folder name to XSMOJ
This commit is contained in:
25
XSMOJ/小码君的水果分拣工厂-1.cpp
Normal file
25
XSMOJ/小码君的水果分拣工厂-1.cpp
Normal file
@ -0,0 +1,25 @@
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
using namespace std;
|
||||
int main(){
|
||||
int a[1000];
|
||||
int b;
|
||||
cin >>b;
|
||||
for(int i=0;i<b;i++){
|
||||
cin >>a[i];
|
||||
}
|
||||
for(int i=0;i<b;i++){
|
||||
if(a[i]<=10){
|
||||
cout <<i+1<<" ";
|
||||
}
|
||||
}
|
||||
cout <<endl;
|
||||
for(int i=0;i<b;i++){
|
||||
if(a[i]>10){
|
||||
cout <<i+1<<" ";
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user