Skip to content

Instantly share code, notes, and snippets.

View kartikx's full-sized avatar
🍉

Kartik Ramesh kartikx

🍉
View GitHub Profile
@kartikx
kartikx / lifeguards.cpp
Last active May 16, 2021 17:21
Lifeguards USACO Silver Solution
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
//----------TEMPLATES----------
template<typename... T>
void see(T&... args) { ((cin >> args), ...);}
template<typename... T>
void put(T&&... args) { ((cout << args << " "), ...);}
template<typename... T>
package main
import (
"encoding/json"
"fmt"
"os"
"strconv"
"sync"
"time"
)
int testConvert(char* str) {
int num = 0;
while (*str != '\0') {
num = num*10 + (*str - '0');
str++;
}
return num;
}