Skip to content

Instantly share code, notes, and snippets.

View tabvn's full-sized avatar

Toan tabvn

  • Danang, Vietnam
View GitHub Profile
@tabvn
tabvn / keo_banh.cpp
Last active November 13, 2018 17:03
#include <iostream>
#include <vector>
using namespace std;
const int KEO = 0; // KEO la nguoi di duoc
struct Money
{
int value;
bool isTaken;
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
vector<long int> v;
vector<long int> result;
bool descSort(long int a, long int b){
#include <iostream>
using namespace std;
long long jump(long long a, long long b, long long k){
if(k == 1){
return a;
}
if(k == 2){
@tabvn
tabvn / good_array.cpp
Created November 17, 2018 08:35
codeforces good array
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
struct Num
{
long int value;
long long index;
@tabvn
tabvn / Disturbed People.cpp
Created November 17, 2018 10:07
codeforces Disturbed People
#include <iostream>
#include <vector>
using namespace std;
struct Flat
{
int isLightOn;
int index;
Flat *left;
Flat *right;
@tabvn
tabvn / sinx.cpp
Last active December 6, 2018 06:19
sinx.cpp
#include <iostream>
#include <iomanip>
using namespace std;
#include<iostream>
#include <iomanip>
using namespace std;
double chia(double x, int n){
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
struct Line
{
long int a,b;
long long length;
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
struct Line
{
long int a,b;
long long length;
const query = [
{
$lookup: {
localField: '_id',
foreignField: 'productionId',
from: 'production_lead',
as: 'production_lead'
}
},
{
@tabvn
tabvn / b.cpp
Last active December 28, 2018 16:40
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
struct Seq
{
char c;
long long length;