diff --git a/QUSTOJ/1883.cpp b/QUSTOJ/1883.cpp new file mode 100644 index 0000000..a746de4 --- /dev/null +++ b/QUSTOJ/1883.cpp @@ -0,0 +1,45 @@ +#include +#include +#include +using namespace std; +struct pack +{ + string man,woman; +}; +int main() +{ + int n; + cin>>n; + queue manbus; + queue womanbus; + string name,sexual; + while(n--) + { + cin>>name>>sexual; + if(sexual=="M") + { + manbus.push(name); + } + else + { + womanbus.push(name); + } + } + cout<<"The dancing partners are:"<