Skip to content

Instantly share code, notes, and snippets.

View tabvn's full-sized avatar

Toan tabvn

  • Danang, Vietnam
View GitHub Profile
@tabvn
tabvn / dothi.cpp
Last active October 13, 2018 10:58
#include <iostream>
#include <math.h>
using namespace std;
struct Point{
int x;
int y;
};
@tabvn
tabvn / cp.cpp
Last active October 16, 2018 03:06
so chinh P, tru 1 %3
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
struct Num {
long long k;
long long m;
};
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
using namespace std;
struct B{
string s;
#include <iostream>
#include <fstream>
using namespace std;
/*
/Users/toan/ued/16-10-2018/SP
*/
ifstream fi ("SP.INP");
@tabvn
tabvn / FIBSEQ.cpp
Last active October 17, 2018 09:48
#include <iostream>
#include <fstream>
#include <vector>
using namespace std;
/*
/Users/toan/ued/18-10-2018
*/
ifstream fi ("FIBSEQ.INP");
#include <iostream>
#include <fstream>
#include <vector>
using namespace std;
ifstream fi ("SVOI.INP");
ofstream fo ("SVOI.OUT");
struct BT{
#include <iostream>
#include <fstream>
#include <vector>
using namespace std;
ifstream fi ("CANARIUM.INP");
ofstream fo ("CANARIUM.OUT");
vector<long long> v;
#include <iostream>
#include <fstream>
#include <vector>
#include <math.h>
using namespace std;
ifstream fi ("/Users/toan/ued/18-10-2018/SCARD.INP");
ofstream fo ("/Users/toan/ued/18-10-2018/SCARD.OUT");
#include <iostream>
#include <fstream>
#include <vector>
#import <cstdlib> // khai báo để tí nữa dùng hàm abs
using namespace std;
ifstream fi ("/Users/toan/ued/18-10-2018/GOMIN.INP");
ofstream fo ("/Users/toan/ued/18-10-2018/GOMIN.OUT");
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
bool isPrime(long int n){
if(n < 2){
return false;
}