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> | |
using namespace std; | |
long double abs(long double x) | |
{ | |
return (x < 0.0 ? -x : x); | |
} | |
long double sqrt(long double x) | |
{ |
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 <bits/stdc++.h> | |
using namespace std; | |
const int dx[] = {0, 0, 1, -1}, dy[] = {-1, 1, 0, 0}; | |
int h, w; | |
int n; | |
int lx[1010], ly[1010], rx[1010], ry[1010]; | |
vector<int> x, y; |
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 <bits/stdc++.h> | |
using namespace std; | |
#define int long long | |
#define rep(i, n) for (int i = 0; i < n; i++) | |
#define fi first | |
#define se second | |
const int inf = 1e17 + 9; |
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 <bits/stdc++.h> | |
using namespace std; | |
const int mod = 1e5; | |
int n, m, s; | |
int dp[50][3001]; | |
int main() | |
{ | |
while (cin >> n >> m >> s, n){ |
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 <bits/stdc++.h> | |
using namespace std; | |
const int inf = 1e9 + 9; | |
const int max_n = 5000; | |
typedef pair<int, int> P; | |
struct edge{ | |
int to, cost; | |
}; |
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 <bits/stdc++.h> | |
using namespace std; | |
typedef long long ll; | |
const int MAX_N = 60; | |
int n, k; | |
int X1[60], Y1[60], Z1[60]; | |
int X2[60], Y2[60], Z2[60]; |
NewerOlder