Last active
October 19, 2020 08:09
-
-
Save chaidhat/eb4d4f4038f45e8b7bf2b789a1cc5d38 to your computer and use it in GitHub Desktop.
Kickstart boilerplate code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Chaidhat Chaimongkol | |
#include <bits/stdc++.h> | |
using namespace std; | |
void Solve () | |
{ | |
// str.length() is string's length | |
// str.at(i) where int i is the character at that index | |
//string str; cin >> str; | |
long long ans = 0; | |
/* MAPS | |
map<int, int> marks; | |
marks.insert(pair<int, int>(160, 42)); | |
marks.insert(pair<int, int>(161, 30)); | |
map<int, int>::iterator itr; | |
for (itr = marks.begin(); itr != marks.end(); ++itr) | |
{ | |
cout << itr->first << " " << itr->second << 'n'; | |
} | |
// OUTPUT | |
// 160 42 | |
// 161 30 | |
*/ | |
// CODE CODE CODE | |
cout << ans; // NO ENDLINE NEEDED | |
} | |
int main () | |
{ | |
int T; cin >> T; | |
for (int i = 0; i < T; i++) | |
{ | |
cout << "Case #" << (i+1) << ": "; | |
Solve(); | |
cout << "\n"; | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Chaidhat Chaimongkol | |
T = int(input()) | |
for i in range(T): | |
#string = input() | |
#strSplit = string.split() | |
#strLen = len(string) | |
ans = 0 | |
# CODE CODE CODE | |
print("case #" + str(i + 1) + ": " + str(ans)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem Chaidhat Chaimongkol | |
@echo off | |
:start | |
echo LOADING LOADING LOADING LOADING LOADING | |
g++ kick-start-boilerplate.cpp -o kick-start-boilerplate | |
echo RUN RUN RUN RUN RUN RUN RUN RUN RUN RUN | |
kick-start-boilerplate | |
goto start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment