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> | |
#define ii pair<int,int> | |
using namespace std; | |
const int M = 501; | |
int n,m; | |
char mat[M][M]={0}; | |
void fall(int i, int j) { |
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; | |
int main() { | |
int n;cin>>n; | |
int arr[n]; | |
int ans=1; | |
for(int i=0;i<n;i++) cin>>arr[i]; |
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
max(a, b) { if(a > b) return a; return b; } | |
main(a,b,c) { scanf("%d%d%d",&a,&b,&c); printf("%d\n",max(max(a-(b+c),b),c)); } |
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; | |
int main() { | |
int n,m; | |
cin>>n>>m; | |
map<int,int> idToCasa; |
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; | |
int n=5; | |
int main() { | |
int c=1,d=1; | |
int arr[n]; | |
for(int i=0;i<n;i++) cin>>arr[i]; |
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; | |
int main() { | |
int n,m;cin>>n>>m; | |
int arr[n]; | |
for(int i=0;i<n;i++) cin>>arr[i]; |
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> | |
#define ii pair<int,int> | |
using namespace std; | |
const int N = 105; | |
int ds[N]; | |
void dsBuild() { | |
for(int i=0;i<N;i++) ds[i]=i; |
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> | |
#define int long long int | |
using namespace std; | |
const int M = 5e5+20; | |
int n,s; | |
int32_t main() { | |
cin>>n>>s; | |
int ans=0; |
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 <stdio.h> | |
#define M 101 | |
#define N 1000001 | |
#define mod 1000000007 | |
int n,x; | |
int dp[N][M]={0}; | |
int vec[M]; |
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> | |
#define int long long int | |
using namespace std; | |
const int M = 5e5+20; | |
int n,s; | |
int32_t main() { | |
cin>>n>>s; | |
int ans=0; |