Skip to content

Instantly share code, notes, and snippets.

View tabvn's full-sized avatar

Toan tabvn

  • Danang, Vietnam
View GitHub Profile
@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){
@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 / 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;
#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){
#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){
@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;
bool doiXung(string s, long long length){
if(length == 1){
return true;
}
bool dx = false;
long long i, j;
i = 0;
j = length - 1;
while(s[i] == s[j]){
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
vector<long int> s;
vector<long int> p;
long int a[20000];
long long total = 0;

LiveX Dashboard Local Development environment

Download

  • Checkout source code at bitbucket
git clone https://[email protected]/tabvn/livex_dashboard.git

@tabvn
tabvn / The Next Palindrome.cpp
Last active November 8, 2018 09:53
The Next Palindrome
#include <iostream>
#include <vector>
using namespace std;
vector<string> v;
int paseInt(char c) {
switch (c) {