This file contains hidden or 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 scin(x) sc("%d",&(x)) | |
#define scln(x) sc("%lld",&(x)) | |
#define RUN_CASE(t,T) for(__typeof(t) t=1;t<=T;t++) | |
using namespace std; | |
bool Check(int N, int pos) {return (bool)(N & (1<<pos));} | |
const int N = 50000+100; | |
int tot_node = 1; |
This file contains hidden or 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
ll dp[2][2][2][35][35][51]; | |
vi num; | |
char s[5][55]; | |
ll FuN(bool isStart,bool isSmall,bool veThree,int dif1,int dif2,int pos) | |
{ | |
if(pos >= (int)num.size()){ | |
if(veThree && dif1==17 && dif2==17) | |
return 1LL; | |
else |
This file contains hidden or 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
bool Cheek(int N, int pos) {return (bool)(N & (1<<pos));} | |
pair<ll , int> dp[2][31][31][31][3][7]; ///First - Value ; Second - Frequency | |
vi num,ideal; | |
int lb,ub,mxone,idnum,differ; | |
pair<ll , int> FuN(int isSmall,int pos,int ones,int diffr,int mod_3,int mod_7) | |
{ | |
if(pos >= (int)num.size()){ |
This file contains hidden or 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; | |
map<char , int>m; | |
int main() | |
{ | |
m['a'] = 1; | |
m['z'] = 2; | |
m['h'] = 5; | |
cout<<m.empty()<<endl; /// 0 will be printed because map isn't empty |
This file contains hidden or 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; | |
map<string , int>m; | |
map<string , int>::iterator it; | |
int main() | |
{ | |
int i,n; | |
string s; | |
cout<<"Enter the number of student: "; |
This file contains hidden or 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; | |
map<string , int>m; | |
int main() | |
{ | |
int i,n; | |
string s; | |
cout<<"Enter the number of student: "; | |
cin>>n; |
This file contains hidden or 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 ara[101]; | |
int main() | |
{ | |
int i,x,n; | |
cout<<"Enter the number of student: "; | |
cin>>n; | |
cout<<"Enter the marks of n student of that class: "; |
This file contains hidden or 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() | |
{ | |
vector<int>v1,v2; | |
v1.push_back(3); ///DATA insert | |
v1.push_back(8); | |
v1.push_back(1); |
This file contains hidden or 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() | |
{ | |
vector<int>v1,v2; | |
vector<int>::iterator it; | |
v1.push_back(3); ///DATA insert | |
v1.push_back(8); | |
v1.push_back(1); |
This file contains hidden or 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() | |
{ | |
vector<int>v; | |
vector<int>::iterator it; | |
v.push_back(3); ///DATA insert | |
v.push_back(8); | |
v.push_back(1); |