F1 stringlengths 6 6 | F2 stringlengths 6 6 | text_1 stringlengths 20 200k | text_2 stringlengths 20 200k | label int64 0 1 |
|---|---|---|---|---|
C10057 | C10240 | #include <cstdio>
#include <vector>
#include <string>
#include <iostream>
#include <cmath>
#include <set>
#include <algorithm>
using namespace std;
int main (void) {
int tn;
scanf ("%d", &tn);
for (int tt = 1; tt <= tn; tt++) {
int h, w, d;
scanf ("%d%d%d", &h, &w, &d);
vector <string> board(h);
... | #include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
using namespace std;
const double pi = acos(-1.0); // 3.1415926535897932384626433832795
const double eps = 1e-8;
const double dinf = 1e8;
const double einf = 1e30;
inline double sqr( double x ) { return x * x ; };
inline i... | 0 |
C10057 | C10179 | #include <cstdio>
#include <vector>
#include <string>
#include <iostream>
#include <cmath>
#include <set>
#include <algorithm>
using namespace std;
int main (void) {
int tn;
scanf ("%d", &tn);
for (int tt = 1; tt <= tn; tt++) {
int h, w, d;
scanf ("%d%d%d", &h, &w, &d);
vector <string> board(h);
... | #ifdef DEBUG
#define D(x...) fprintf(stderr,x);
#else
#define D(x...) 0
#endif
#include <cstdio>
#include <cmath>
#include <cassert>
#include <algorithm>
#include <vector>
#include <queue>
#include <map>
#include <set>
using namespace std;
char grid[50][50];
int tr, tc;
int H, W, D;
inline int gcd(int a, int b) {
... | 0 |
C10057 | C10303 | #include <cstdio>
#include <vector>
#include <string>
#include <iostream>
#include <cmath>
#include <set>
#include <algorithm>
using namespace std;
int main (void) {
int tn;
scanf ("%d", &tn);
for (int tt = 1; tt <= tn; tt++) {
int h, w, d;
scanf ("%d%d%d", &h, &w, &d);
vector <string> board(h);
... | #include "stdafx.h"
#include <iostream>
#include <stdio.h>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <map>
#include <algorithm>
#include <time.h>
#include <memory>
using namespace std;
typedef long long LL;
typedef long long uLL;
typedef unsigned int uint;
#define FOR(i, b, e) for(in... | 0 |
C10057 | C10120 | #include <cstdio>
#include <vector>
#include <string>
#include <iostream>
#include <cmath>
#include <set>
#include <algorithm>
using namespace std;
int main (void) {
int tn;
scanf ("%d", &tn);
for (int tt = 1; tt <= tn; tt++) {
int h, w, d;
scanf ("%d%d%d", &h, &w, &d);
vector <string> board(h);
... | #include <iostream>
#include <set>
#include <vector>
using namespace std;
int gcd(int a, int b){
return b?gcd(b,a%b):a;
}
pair<int,int> nor(int a, int b){
int g = gcd(abs(a), abs(b));
// cout << a << ',' << b << " -> " << a/g << ',' << b/g << '\n';
return make_pair(a/g, b/g);
}
bool dist(int a, int b, int d){
... | 0 |
C10057 | C10123 | #include <cstdio>
#include <vector>
#include <string>
#include <iostream>
#include <cmath>
#include <set>
#include <algorithm>
using namespace std;
int main (void) {
int tn;
scanf ("%d", &tn);
for (int tt = 1; tt <= tn; tt++) {
int h, w, d;
scanf ("%d%d%d", &h, &w, &d);
vector <string> board(h);
... | #include <cstdio>
#include <vector>
using namespace std;
struct Point
{
int x, y;
Point(int x = 0, int y = 0)
{
this->x = x;
this->y = y;
}
// printing for debug
void print()
{
printf("(%d, %d)\n", x, y);
}
};
inline bool operator== (Point a, Point b)
{
if (a.x == b.x && a.y == b.y) return true;
r... | 0 |
C10057 | C10017 | #include <cstdio>
#include <vector>
#include <string>
#include <iostream>
#include <cmath>
#include <set>
#include <algorithm>
using namespace std;
int main (void) {
int tn;
scanf ("%d", &tn);
for (int tt = 1; tt <= tn; tt++) {
int h, w, d;
scanf ("%d%d%d", &h, &w, &d);
vector <string> board(h);
... | #pragma once
// -- libs includes
#include "core/types.h"
// ================================================================================================
// Static functionality for managing memory
// ================================================================================================
class CMemory {
... | 0 |
C10057 | C10326 | #include <cstdio>
#include <vector>
#include <string>
#include <iostream>
#include <cmath>
#include <set>
#include <algorithm>
using namespace std;
int main (void) {
int tn;
scanf ("%d", &tn);
for (int tt = 1; tt <= tn; tt++) {
int h, w, d;
scanf ("%d%d%d", &h, &w, &d);
vector <string> board(h);
... | #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cassert>
#include <climits>
#include <ctime>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <algorithm>
#include <vector>
#include <deque>
#include <list>
#include <queue>
#include <set>
#include <map>
#include <limits... | 0 |
C10057 | C10095 | #include <cstdio>
#include <vector>
#include <string>
#include <iostream>
#include <cmath>
#include <set>
#include <algorithm>
using namespace std;
int main (void) {
int tn;
scanf ("%d", &tn);
for (int tt = 1; tt <= tn; tt++) {
int h, w, d;
scanf ("%d%d%d", &h, &w, &d);
vector <string> board(h);
... | #pragma once
#pragma comment(linker, "/STACK:60000000")
#define _CRT_SECURE_NO_WARNINGS
#define _SECURE_SCL 1 // To enable checked iterators
#define _SECURE_SCL_THROWS 1
//------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <con... | 0 |
C10057 | C10106 | #include <cstdio>
#include <vector>
#include <string>
#include <iostream>
#include <cmath>
#include <set>
#include <algorithm>
using namespace std;
int main (void) {
int tn;
scanf ("%d", &tn);
for (int tt = 1; tt <= tn; tt++) {
int h, w, d;
scanf ("%d%d%d", &h, &w, &d);
vector <string> board(h);
... | #include<iostream>
#include<math.h>
using namespace std;
//#define CYDONIA_DEBUG
//¿â
struct POINT{
int x,y;
POINT()
{
x=0;
y=0;
}
POINT(int a,int b)
{
x=a;
y=b;
}
POINT operator+(const POINT& p)
{
POINT ret;
ret.x = x + p.x;
ret.y = y + p.y;
return ret;
}
POINT operator-(const POINT& p)... | 0 |
C10240 | C10179 | #include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
using namespace std;
const double pi = acos(-1.0); // 3.1415926535897932384626433832795
const double eps = 1e-8;
const double dinf = 1e8;
const double einf = 1e30;
inline double sqr( double x ) { return x * x ; };
inline i... | #ifdef DEBUG
#define D(x...) fprintf(stderr,x);
#else
#define D(x...) 0
#endif
#include <cstdio>
#include <cmath>
#include <cassert>
#include <algorithm>
#include <vector>
#include <queue>
#include <map>
#include <set>
using namespace std;
char grid[50][50];
int tr, tc;
int H, W, D;
inline int gcd(int a, int b) {
... | 0 |
C10240 | C10303 | #include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
using namespace std;
const double pi = acos(-1.0); // 3.1415926535897932384626433832795
const double eps = 1e-8;
const double dinf = 1e8;
const double einf = 1e30;
inline double sqr( double x ) { return x * x ; };
inline i... | #include "stdafx.h"
#include <iostream>
#include <stdio.h>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <map>
#include <algorithm>
#include <time.h>
#include <memory>
using namespace std;
typedef long long LL;
typedef long long uLL;
typedef unsigned int uint;
#define FOR(i, b, e) for(in... | 0 |
C10240 | C10120 | #include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
using namespace std;
const double pi = acos(-1.0); // 3.1415926535897932384626433832795
const double eps = 1e-8;
const double dinf = 1e8;
const double einf = 1e30;
inline double sqr( double x ) { return x * x ; };
inline i... | #include <iostream>
#include <set>
#include <vector>
using namespace std;
int gcd(int a, int b){
return b?gcd(b,a%b):a;
}
pair<int,int> nor(int a, int b){
int g = gcd(abs(a), abs(b));
// cout << a << ',' << b << " -> " << a/g << ',' << b/g << '\n';
return make_pair(a/g, b/g);
}
bool dist(int a, int b, int d){
... | 0 |
C10240 | C10123 | #include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
using namespace std;
const double pi = acos(-1.0); // 3.1415926535897932384626433832795
const double eps = 1e-8;
const double dinf = 1e8;
const double einf = 1e30;
inline double sqr( double x ) { return x * x ; };
inline i... | #include <cstdio>
#include <vector>
using namespace std;
struct Point
{
int x, y;
Point(int x = 0, int y = 0)
{
this->x = x;
this->y = y;
}
// printing for debug
void print()
{
printf("(%d, %d)\n", x, y);
}
};
inline bool operator== (Point a, Point b)
{
if (a.x == b.x && a.y == b.y) return true;
r... | 0 |
C10240 | C10017 | #include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
using namespace std;
const double pi = acos(-1.0); // 3.1415926535897932384626433832795
const double eps = 1e-8;
const double dinf = 1e8;
const double einf = 1e30;
inline double sqr( double x ) { return x * x ; };
inline i... | #pragma once
// -- libs includes
#include "core/types.h"
// ================================================================================================
// Static functionality for managing memory
// ================================================================================================
class CMemory {
... | 0 |
C10240 | C10326 | #include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
using namespace std;
const double pi = acos(-1.0); // 3.1415926535897932384626433832795
const double eps = 1e-8;
const double dinf = 1e8;
const double einf = 1e30;
inline double sqr( double x ) { return x * x ; };
inline i... | #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cassert>
#include <climits>
#include <ctime>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <algorithm>
#include <vector>
#include <deque>
#include <list>
#include <queue>
#include <set>
#include <map>
#include <limits... | 0 |
C10240 | C10095 | #include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
using namespace std;
const double pi = acos(-1.0); // 3.1415926535897932384626433832795
const double eps = 1e-8;
const double dinf = 1e8;
const double einf = 1e30;
inline double sqr( double x ) { return x * x ; };
inline i... | #pragma once
#pragma comment(linker, "/STACK:60000000")
#define _CRT_SECURE_NO_WARNINGS
#define _SECURE_SCL 1 // To enable checked iterators
#define _SECURE_SCL_THROWS 1
//------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <con... | 0 |
C10240 | C10106 | #include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
using namespace std;
const double pi = acos(-1.0); // 3.1415926535897932384626433832795
const double eps = 1e-8;
const double dinf = 1e8;
const double einf = 1e30;
inline double sqr( double x ) { return x * x ; };
inline i... | #include<iostream>
#include<math.h>
using namespace std;
//#define CYDONIA_DEBUG
//¿â
struct POINT{
int x,y;
POINT()
{
x=0;
y=0;
}
POINT(int a,int b)
{
x=a;
y=b;
}
POINT operator+(const POINT& p)
{
POINT ret;
ret.x = x + p.x;
ret.y = y + p.y;
return ret;
}
POINT operator-(const POINT& p)... | 0 |
C10179 | C10303 | #ifdef DEBUG
#define D(x...) fprintf(stderr,x);
#else
#define D(x...) 0
#endif
#include <cstdio>
#include <cmath>
#include <cassert>
#include <algorithm>
#include <vector>
#include <queue>
#include <map>
#include <set>
using namespace std;
char grid[50][50];
int tr, tc;
int H, W, D;
inline int gcd(int a, int b) {
... | #include "stdafx.h"
#include <iostream>
#include <stdio.h>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <map>
#include <algorithm>
#include <time.h>
#include <memory>
using namespace std;
typedef long long LL;
typedef long long uLL;
typedef unsigned int uint;
#define FOR(i, b, e) for(in... | 0 |
C10179 | C10120 | #ifdef DEBUG
#define D(x...) fprintf(stderr,x);
#else
#define D(x...) 0
#endif
#include <cstdio>
#include <cmath>
#include <cassert>
#include <algorithm>
#include <vector>
#include <queue>
#include <map>
#include <set>
using namespace std;
char grid[50][50];
int tr, tc;
int H, W, D;
inline int gcd(int a, int b) {
... | #include <iostream>
#include <set>
#include <vector>
using namespace std;
int gcd(int a, int b){
return b?gcd(b,a%b):a;
}
pair<int,int> nor(int a, int b){
int g = gcd(abs(a), abs(b));
// cout << a << ',' << b << " -> " << a/g << ',' << b/g << '\n';
return make_pair(a/g, b/g);
}
bool dist(int a, int b, int d){
... | 0 |
C10179 | C10123 | #ifdef DEBUG
#define D(x...) fprintf(stderr,x);
#else
#define D(x...) 0
#endif
#include <cstdio>
#include <cmath>
#include <cassert>
#include <algorithm>
#include <vector>
#include <queue>
#include <map>
#include <set>
using namespace std;
char grid[50][50];
int tr, tc;
int H, W, D;
inline int gcd(int a, int b) {
... | #include <cstdio>
#include <vector>
using namespace std;
struct Point
{
int x, y;
Point(int x = 0, int y = 0)
{
this->x = x;
this->y = y;
}
// printing for debug
void print()
{
printf("(%d, %d)\n", x, y);
}
};
inline bool operator== (Point a, Point b)
{
if (a.x == b.x && a.y == b.y) return true;
r... | 0 |
C10179 | C10017 | #ifdef DEBUG
#define D(x...) fprintf(stderr,x);
#else
#define D(x...) 0
#endif
#include <cstdio>
#include <cmath>
#include <cassert>
#include <algorithm>
#include <vector>
#include <queue>
#include <map>
#include <set>
using namespace std;
char grid[50][50];
int tr, tc;
int H, W, D;
inline int gcd(int a, int b) {
... | #pragma once
// -- libs includes
#include "core/types.h"
// ================================================================================================
// Static functionality for managing memory
// ================================================================================================
class CMemory {
... | 0 |
C10179 | C10326 | #ifdef DEBUG
#define D(x...) fprintf(stderr,x);
#else
#define D(x...) 0
#endif
#include <cstdio>
#include <cmath>
#include <cassert>
#include <algorithm>
#include <vector>
#include <queue>
#include <map>
#include <set>
using namespace std;
char grid[50][50];
int tr, tc;
int H, W, D;
inline int gcd(int a, int b) {
... | #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cassert>
#include <climits>
#include <ctime>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <algorithm>
#include <vector>
#include <deque>
#include <list>
#include <queue>
#include <set>
#include <map>
#include <limits... | 0 |
C10179 | C10095 | #ifdef DEBUG
#define D(x...) fprintf(stderr,x);
#else
#define D(x...) 0
#endif
#include <cstdio>
#include <cmath>
#include <cassert>
#include <algorithm>
#include <vector>
#include <queue>
#include <map>
#include <set>
using namespace std;
char grid[50][50];
int tr, tc;
int H, W, D;
inline int gcd(int a, int b) {
... | #pragma once
#pragma comment(linker, "/STACK:60000000")
#define _CRT_SECURE_NO_WARNINGS
#define _SECURE_SCL 1 // To enable checked iterators
#define _SECURE_SCL_THROWS 1
//------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <con... | 0 |
C10179 | C10106 | #ifdef DEBUG
#define D(x...) fprintf(stderr,x);
#else
#define D(x...) 0
#endif
#include <cstdio>
#include <cmath>
#include <cassert>
#include <algorithm>
#include <vector>
#include <queue>
#include <map>
#include <set>
using namespace std;
char grid[50][50];
int tr, tc;
int H, W, D;
inline int gcd(int a, int b) {
... | #include<iostream>
#include<math.h>
using namespace std;
//#define CYDONIA_DEBUG
//¿â
struct POINT{
int x,y;
POINT()
{
x=0;
y=0;
}
POINT(int a,int b)
{
x=a;
y=b;
}
POINT operator+(const POINT& p)
{
POINT ret;
ret.x = x + p.x;
ret.y = y + p.y;
return ret;
}
POINT operator-(const POINT& p)... | 0 |
C10303 | C10120 | #include "stdafx.h"
#include <iostream>
#include <stdio.h>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <map>
#include <algorithm>
#include <time.h>
#include <memory>
using namespace std;
typedef long long LL;
typedef long long uLL;
typedef unsigned int uint;
#define FOR(i, b, e) for(in... | #include <iostream>
#include <set>
#include <vector>
using namespace std;
int gcd(int a, int b){
return b?gcd(b,a%b):a;
}
pair<int,int> nor(int a, int b){
int g = gcd(abs(a), abs(b));
// cout << a << ',' << b << " -> " << a/g << ',' << b/g << '\n';
return make_pair(a/g, b/g);
}
bool dist(int a, int b, int d){
... | 0 |
C10303 | C10123 | #include "stdafx.h"
#include <iostream>
#include <stdio.h>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <map>
#include <algorithm>
#include <time.h>
#include <memory>
using namespace std;
typedef long long LL;
typedef long long uLL;
typedef unsigned int uint;
#define FOR(i, b, e) for(in... | #include <cstdio>
#include <vector>
using namespace std;
struct Point
{
int x, y;
Point(int x = 0, int y = 0)
{
this->x = x;
this->y = y;
}
// printing for debug
void print()
{
printf("(%d, %d)\n", x, y);
}
};
inline bool operator== (Point a, Point b)
{
if (a.x == b.x && a.y == b.y) return true;
r... | 0 |
C10303 | C10017 | #include "stdafx.h"
#include <iostream>
#include <stdio.h>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <map>
#include <algorithm>
#include <time.h>
#include <memory>
using namespace std;
typedef long long LL;
typedef long long uLL;
typedef unsigned int uint;
#define FOR(i, b, e) for(in... | #pragma once
// -- libs includes
#include "core/types.h"
// ================================================================================================
// Static functionality for managing memory
// ================================================================================================
class CMemory {
... | 0 |
C10303 | C10326 | #include "stdafx.h"
#include <iostream>
#include <stdio.h>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <map>
#include <algorithm>
#include <time.h>
#include <memory>
using namespace std;
typedef long long LL;
typedef long long uLL;
typedef unsigned int uint;
#define FOR(i, b, e) for(in... | #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cassert>
#include <climits>
#include <ctime>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <algorithm>
#include <vector>
#include <deque>
#include <list>
#include <queue>
#include <set>
#include <map>
#include <limits... | 0 |
C10303 | C10095 | #include "stdafx.h"
#include <iostream>
#include <stdio.h>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <map>
#include <algorithm>
#include <time.h>
#include <memory>
using namespace std;
typedef long long LL;
typedef long long uLL;
typedef unsigned int uint;
#define FOR(i, b, e) for(in... | #pragma once
#pragma comment(linker, "/STACK:60000000")
#define _CRT_SECURE_NO_WARNINGS
#define _SECURE_SCL 1 // To enable checked iterators
#define _SECURE_SCL_THROWS 1
//------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <con... | 0 |
C10303 | C10106 | #include "stdafx.h"
#include <iostream>
#include <stdio.h>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <map>
#include <algorithm>
#include <time.h>
#include <memory>
using namespace std;
typedef long long LL;
typedef long long uLL;
typedef unsigned int uint;
#define FOR(i, b, e) for(in... | #include<iostream>
#include<math.h>
using namespace std;
//#define CYDONIA_DEBUG
//¿â
struct POINT{
int x,y;
POINT()
{
x=0;
y=0;
}
POINT(int a,int b)
{
x=a;
y=b;
}
POINT operator+(const POINT& p)
{
POINT ret;
ret.x = x + p.x;
ret.y = y + p.y;
return ret;
}
POINT operator-(const POINT& p)... | 0 |
C10120 | C10123 | #include <iostream>
#include <set>
#include <vector>
using namespace std;
int gcd(int a, int b){
return b?gcd(b,a%b):a;
}
pair<int,int> nor(int a, int b){
int g = gcd(abs(a), abs(b));
// cout << a << ',' << b << " -> " << a/g << ',' << b/g << '\n';
return make_pair(a/g, b/g);
}
bool dist(int a, int b, int d){
... | #include <cstdio>
#include <vector>
using namespace std;
struct Point
{
int x, y;
Point(int x = 0, int y = 0)
{
this->x = x;
this->y = y;
}
// printing for debug
void print()
{
printf("(%d, %d)\n", x, y);
}
};
inline bool operator== (Point a, Point b)
{
if (a.x == b.x && a.y == b.y) return true;
r... | 0 |
C10120 | C10017 | #include <iostream>
#include <set>
#include <vector>
using namespace std;
int gcd(int a, int b){
return b?gcd(b,a%b):a;
}
pair<int,int> nor(int a, int b){
int g = gcd(abs(a), abs(b));
// cout << a << ',' << b << " -> " << a/g << ',' << b/g << '\n';
return make_pair(a/g, b/g);
}
bool dist(int a, int b, int d){
... | #pragma once
// -- libs includes
#include "core/types.h"
// ================================================================================================
// Static functionality for managing memory
// ================================================================================================
class CMemory {
... | 0 |
C10120 | C10326 | #include <iostream>
#include <set>
#include <vector>
using namespace std;
int gcd(int a, int b){
return b?gcd(b,a%b):a;
}
pair<int,int> nor(int a, int b){
int g = gcd(abs(a), abs(b));
// cout << a << ',' << b << " -> " << a/g << ',' << b/g << '\n';
return make_pair(a/g, b/g);
}
bool dist(int a, int b, int d){
... | #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cassert>
#include <climits>
#include <ctime>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <algorithm>
#include <vector>
#include <deque>
#include <list>
#include <queue>
#include <set>
#include <map>
#include <limits... | 0 |
C10120 | C10095 | #include <iostream>
#include <set>
#include <vector>
using namespace std;
int gcd(int a, int b){
return b?gcd(b,a%b):a;
}
pair<int,int> nor(int a, int b){
int g = gcd(abs(a), abs(b));
// cout << a << ',' << b << " -> " << a/g << ',' << b/g << '\n';
return make_pair(a/g, b/g);
}
bool dist(int a, int b, int d){
... | #pragma once
#pragma comment(linker, "/STACK:60000000")
#define _CRT_SECURE_NO_WARNINGS
#define _SECURE_SCL 1 // To enable checked iterators
#define _SECURE_SCL_THROWS 1
//------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <con... | 0 |
C10120 | C10106 | #include <iostream>
#include <set>
#include <vector>
using namespace std;
int gcd(int a, int b){
return b?gcd(b,a%b):a;
}
pair<int,int> nor(int a, int b){
int g = gcd(abs(a), abs(b));
// cout << a << ',' << b << " -> " << a/g << ',' << b/g << '\n';
return make_pair(a/g, b/g);
}
bool dist(int a, int b, int d){
... | #include<iostream>
#include<math.h>
using namespace std;
//#define CYDONIA_DEBUG
//¿â
struct POINT{
int x,y;
POINT()
{
x=0;
y=0;
}
POINT(int a,int b)
{
x=a;
y=b;
}
POINT operator+(const POINT& p)
{
POINT ret;
ret.x = x + p.x;
ret.y = y + p.y;
return ret;
}
POINT operator-(const POINT& p)... | 0 |
C10123 | C10017 | #include <cstdio>
#include <vector>
using namespace std;
struct Point
{
int x, y;
Point(int x = 0, int y = 0)
{
this->x = x;
this->y = y;
}
// printing for debug
void print()
{
printf("(%d, %d)\n", x, y);
}
};
inline bool operator== (Point a, Point b)
{
if (a.x == b.x && a.y == b.y) return true;
r... | #pragma once
// -- libs includes
#include "core/types.h"
// ================================================================================================
// Static functionality for managing memory
// ================================================================================================
class CMemory {
... | 0 |
C10123 | C10326 | #include <cstdio>
#include <vector>
using namespace std;
struct Point
{
int x, y;
Point(int x = 0, int y = 0)
{
this->x = x;
this->y = y;
}
// printing for debug
void print()
{
printf("(%d, %d)\n", x, y);
}
};
inline bool operator== (Point a, Point b)
{
if (a.x == b.x && a.y == b.y) return true;
r... | #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cassert>
#include <climits>
#include <ctime>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <algorithm>
#include <vector>
#include <deque>
#include <list>
#include <queue>
#include <set>
#include <map>
#include <limits... | 0 |
C10123 | C10095 | #include <cstdio>
#include <vector>
using namespace std;
struct Point
{
int x, y;
Point(int x = 0, int y = 0)
{
this->x = x;
this->y = y;
}
// printing for debug
void print()
{
printf("(%d, %d)\n", x, y);
}
};
inline bool operator== (Point a, Point b)
{
if (a.x == b.x && a.y == b.y) return true;
r... | #pragma once
#pragma comment(linker, "/STACK:60000000")
#define _CRT_SECURE_NO_WARNINGS
#define _SECURE_SCL 1 // To enable checked iterators
#define _SECURE_SCL_THROWS 1
//------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <con... | 0 |
C10123 | C10106 | #include <cstdio>
#include <vector>
using namespace std;
struct Point
{
int x, y;
Point(int x = 0, int y = 0)
{
this->x = x;
this->y = y;
}
// printing for debug
void print()
{
printf("(%d, %d)\n", x, y);
}
};
inline bool operator== (Point a, Point b)
{
if (a.x == b.x && a.y == b.y) return true;
r... | #include<iostream>
#include<math.h>
using namespace std;
//#define CYDONIA_DEBUG
//¿â
struct POINT{
int x,y;
POINT()
{
x=0;
y=0;
}
POINT(int a,int b)
{
x=a;
y=b;
}
POINT operator+(const POINT& p)
{
POINT ret;
ret.x = x + p.x;
ret.y = y + p.y;
return ret;
}
POINT operator-(const POINT& p)... | 0 |
C10017 | C10326 | #pragma once
// -- libs includes
#include "core/types.h"
// ================================================================================================
// Static functionality for managing memory
// ================================================================================================
class CMemory {
... | #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cassert>
#include <climits>
#include <ctime>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <algorithm>
#include <vector>
#include <deque>
#include <list>
#include <queue>
#include <set>
#include <map>
#include <limits... | 0 |
C10017 | C10095 | #pragma once
// -- libs includes
#include "core/types.h"
// ================================================================================================
// Static functionality for managing memory
// ================================================================================================
class CMemory {
... | #pragma once
#pragma comment(linker, "/STACK:60000000")
#define _CRT_SECURE_NO_WARNINGS
#define _SECURE_SCL 1 // To enable checked iterators
#define _SECURE_SCL_THROWS 1
//------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <con... | 0 |
C10017 | C10106 | #pragma once
// -- libs includes
#include "core/types.h"
// ================================================================================================
// Static functionality for managing memory
// ================================================================================================
class CMemory {
... | #include<iostream>
#include<math.h>
using namespace std;
//#define CYDONIA_DEBUG
//¿â
struct POINT{
int x,y;
POINT()
{
x=0;
y=0;
}
POINT(int a,int b)
{
x=a;
y=b;
}
POINT operator+(const POINT& p)
{
POINT ret;
ret.x = x + p.x;
ret.y = y + p.y;
return ret;
}
POINT operator-(const POINT& p)... | 0 |
C10326 | C10095 | #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cassert>
#include <climits>
#include <ctime>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <algorithm>
#include <vector>
#include <deque>
#include <list>
#include <queue>
#include <set>
#include <map>
#include <limits... | #pragma once
#pragma comment(linker, "/STACK:60000000")
#define _CRT_SECURE_NO_WARNINGS
#define _SECURE_SCL 1 // To enable checked iterators
#define _SECURE_SCL_THROWS 1
//------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <con... | 0 |
C10326 | C10106 | #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cassert>
#include <climits>
#include <ctime>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <algorithm>
#include <vector>
#include <deque>
#include <list>
#include <queue>
#include <set>
#include <map>
#include <limits... | #include<iostream>
#include<math.h>
using namespace std;
//#define CYDONIA_DEBUG
//¿â
struct POINT{
int x,y;
POINT()
{
x=0;
y=0;
}
POINT(int a,int b)
{
x=a;
y=b;
}
POINT operator+(const POINT& p)
{
POINT ret;
ret.x = x + p.x;
ret.y = y + p.y;
return ret;
}
POINT operator-(const POINT& p)... | 0 |
C10095 | C10106 | #pragma once
#pragma comment(linker, "/STACK:60000000")
#define _CRT_SECURE_NO_WARNINGS
#define _SECURE_SCL 1 // To enable checked iterators
#define _SECURE_SCL_THROWS 1
//------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <con... | #include<iostream>
#include<math.h>
using namespace std;
//#define CYDONIA_DEBUG
//¿â
struct POINT{
int x,y;
POINT()
{
x=0;
y=0;
}
POINT(int a,int b)
{
x=a;
y=b;
}
POINT operator+(const POINT& p)
{
POINT ret;
ret.x = x + p.x;
ret.y = y + p.y;
return ret;
}
POINT operator-(const POINT& p)... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.