Skip to content

Instantly share code, notes, and snippets.

@Kanav-Arora
Created December 31, 2022 10:24
Show Gist options
  • Save Kanav-Arora/b0521294f27a970e83d84dfe649e977b to your computer and use it in GitHub Desktop.
Save Kanav-Arora/b0521294f27a970e83d84dfe649e977b to your computer and use it in GitHub Desktop.
This file contains a template for Competitive Programming with Faster Inputs and Outputs.
#include <bits/stdc++.h>
using namespace std;
void solve()
{
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("error.txt", "w", stderr);
freopen("output.txt", "w", stdout);
#endif
int t = 1;
cin >> t;
while (t--)
{
int a,b;
cin>>a>>b;
cout <<(a+b);
}
cerr << "time taken : " << (float)clock() / CLOCKS_PER_SEC << " secs" << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment