fork download
  1. #include <iostream>
  2. #include<string>
  3. using namespace std;
  4.  
  5. int main() {
  6. string j;
  7. int x,jm,c=0,mn=1001;
  8. for (int i=0;i<x;++i) {
  9. cin>>j>>jm;
  10. if (jm==mn)
  11. ++c;
  12. else if (jm<mn) {
  13. c = 1;
  14. mn = jm;
  15. }
  16. }
  17. cout << c << endl;
  18. return 0;
  19. }
Success #stdin #stdout 0s 4504KB
stdin
Standard input is empty
stdout
0