Advertisement
AlexandruT

[pbInfo] bifrunze

Dec 4th, 2016
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <fstream>
  2. using namespace std;
  3.  
  4. ifstream fin("bifrunze.in");
  5. ofstream fout("bifrunze.out");
  6.  
  7. int n, x, st, dr;
  8.  
  9. int main()
  10. {
  11.     fin >> n;
  12.     for(int i = 1; i <= n; i++)
  13.     {
  14.         fin >> x >> st >> dr;
  15.         if(st == 0 && dr == 0)
  16.             fout << i << " ";
  17.     }
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement