Skip to content

Instantly share code, notes, and snippets.

@chaidhat
Last active October 19, 2020 08:09
Show Gist options
  • Save chaidhat/eb4d4f4038f45e8b7bf2b789a1cc5d38 to your computer and use it in GitHub Desktop.
Save chaidhat/eb4d4f4038f45e8b7bf2b789a1cc5d38 to your computer and use it in GitHub Desktop.
Kickstart boilerplate code
// 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";
}
}
# 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))
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