Compare commits

...

4 Commits

Author SHA1 Message Date
5a05a4484e gitignore 2026-04-04 19:56:56 -05:00
351bcc9b69 cpp tempaltes 2026-04-04 19:55:09 -05:00
054c58cb37 consoleio 2026-04-04 19:52:54 -05:00
680970378f changed filenames 2026-04-04 19:51:10 -05:00
5 changed files with 72 additions and 2 deletions

27
.gitignore vendored Normal file
View File

@@ -0,0 +1,27 @@
# ─── C++ ─────────────────────────────────────────────────────────────────────
*.o
*.out
*.exe
*.dSYM/
sol
debug
# ─── Java ────────────────────────────────────────────────────────────────────
*.class
*.jar
out/
# ─── Test Files ──────────────────────────────────────────────────────────────
*.out # always ignore outputs
# *.in # uncomment to also ignore inputs
*.txt
# ─── OS ──────────────────────────────────────────────────────────────────────
.DS_Store
Thumbs.db
# ─── Editors ─────────────────────────────────────────────────────────────────
.vscode/
.idea/
*.swp
*.swo

20
templates/cpp/console.cpp Normal file
View File

@@ -0,0 +1,20 @@
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
// Write Code here
int n;
cin >> n;
cout << n << "\n";
return 0;
}

23
templates/cpp/file.cpp Normal file
View File

@@ -0,0 +1,23 @@
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> 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;
}

View File

@@ -2,7 +2,7 @@ import java.util.*;
import java.io.*;
import java.math.*;
public class BufferedIO {
public class ConsoleIOBuffered {
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
static PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));

View File

@@ -4,7 +4,7 @@ import java.util.*;
import java.io.*;
import java.math.*;
public class ScannerSout {
public class ConsoleIOSimple {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);