View 9426.cpp
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> | |
#include<algorithm> | |
#include<set> | |
using namespace std; | |
int w[250001]; | |
int n, k, t, ans, tmp; | |
long long sum = 0; | |
multiset<int> low, high; | |
multiset<int>::iterator it; |
View 11559.cpp
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> | |
#include<vector> | |
#include<string> | |
#include<cstring> | |
#include<algorithm> | |
#include<map> | |
#include<queue> | |
using namespace std; | |
typedef long long ll; |
View 1343.cpp
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> | |
#include<vector> | |
#include<string> | |
#include<cstring> | |
#include<algorithm> | |
using namespace std; | |
int main() | |
{ | |
ios::sync_with_stdio(false); |
View 1761.cpp
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> | |
#include<vector> | |
#include<string> | |
#include<cstring> | |
#include<algorithm> | |
using namespace std; | |
class Node | |
{ | |
public: |
View 1063.cpp
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> | |
#include<vector> | |
#include<string> | |
#include<cstring> | |
using namespace std; | |
class Node | |
{ | |
public: | |
int x, y; |
View 2533.cpp
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> | |
#include<algorithm> | |
#include<vector> | |
#include<cstdio> | |
using namespace std; | |
int dp[1000001][2]; | |
bool visited[1000001]; | |
vector<vector<int> >v; | |
int dfs(int cur, bool adp) |
View 1780.cpp
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> | |
#include <cstdio> | |
using namespace std; | |
int w[2222][2222],d[3]; | |
void dfs(int x, int y, int k) | |
{ | |
bool f = true; | |
int cmp = w[x][y]; | |
for (int i = x; i < x + k && f; i++) |
View 1629.cpp
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> | |
#include<vector> | |
#include<algorithm> | |
using namespace std; | |
int main() | |
{ | |
long long b,e,m,o=1; | |
cin>>b>>e>>m; | |
b%=m; |
View 2447.cpp
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<cstdio> | |
char s[3000][3000] = { 0 }; | |
void dfs(int depth, int w, int h) | |
{ | |
if (depth == 1) | |
{ | |
s[w][h] = '*'; | |
return; | |
} |
View 9946.cpp
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> | |
#include<algorithm> | |
#include<string> | |
using namespace std; | |
int main() | |
{ | |
for(int i=1;;i++) | |
{ | |
string a, b; |
NewerOlder