что-то наподобие:
C++ |
1
2
3
4
5
6
7
8
9
10
11
12
13
| #include <iostream>
using namespace std;
int main()
{
#ifndef ONLINE_JUDGE
freopen("input.txt", "rt", stdin);
freopen("output.txt", "wt", stdout);
#endif
int a, b;
cin >> a >> b;
cout << a + b << endl;
return 0;
} |
|
но меня учили с использование ifstream и iostream