diff --git a/templates/cpp/consoleio.cpp b/templates/cpp/console.cpp similarity index 91% rename from templates/cpp/consoleio.cpp rename to templates/cpp/console.cpp index a638698..a5a2b51 100644 --- a/templates/cpp/consoleio.cpp +++ b/templates/cpp/console.cpp @@ -9,6 +9,8 @@ int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); + // Write Code here + int n; cin >> n; diff --git a/templates/cpp/file.cpp b/templates/cpp/file.cpp new file mode 100644 index 0000000..66da603 --- /dev/null +++ b/templates/cpp/file.cpp @@ -0,0 +1,23 @@ +#include +using namespace std; + +typedef long long ll; +typedef pair pii; +typedef vector vi; + +int main() { + freopen("problem.in", "r", stdin); // ← change problem name + freopen("problem.out", "w", stdout); // ← change problem name + + ios_base::sync_with_stdio(false); + cin.tie(nullptr); + + // Write code here + + int n; + cin >> n; + + cout << n << "\n"; + + return 0; +}