fork download
  1. #include<fstream>
  2. int main(){
  3. std::ifstream fin("INPUT.TXT");
  4. std::ofstream fout("OUTPUT.TXT");
  5. if (fin.is_open()){
  6. int a, b;
  7. fin >> a, b;
  8. fout << (b-1) << " " << (a-1);
  9. }
  10. fin.close();
  11. fout.close();
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5344KB
stdin
4 7
stdout
Standard output is empty