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
#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> |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"os" | |
"strconv" | |
"sync" | |
"time" | |
) |
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
int testConvert(char* str) { | |
int num = 0; | |
while (*str != '\0') { | |
num = num*10 + (*str - '0'); | |
str++; | |
} | |
return num; | |
} |