Untitled
unknown
plain_text
2 years ago
357 B
3
Indexable
#include <iostream> #include <fstream> #include <tuple> using namespace std; int f(int a, int b) { return a * a - 5 * b; } int main() { ifstream in("func.txt"); ofstream out("result.txt"); if (!in.is_open()) throw("404"); int a; in >> a; for (int i = 0; i < a; i++) { int a, b; in >> a >> b; out << f(a, b) << endl; } }
Editor is loading...