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; | |
//Compiler version g++ 6.3.0 | |
int main() | |
{ | |
int n,count=0; | |
string s; | |
cin>>n; | |
set<string>s1; |
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 root=0; | |
int main() | |
{ | |
int n; | |
cin>>n; | |
vector< vector<int> >nodes(n); | |
queue<int>q; | |
int a[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 ; | |
#define size 1000001 | |
int main() { | |
unsigned long long a,b,c,d[1000001]={0},count=0; | |
for(int i=1;i<size;i++) | |
for(int j=i;j<size;j+=i) | |
++d[j]; | |
cin>>a>>b>>c; | |
for(int i=1;i<=a;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
// working.cpp by Bill Weinman <http://bw.org/> | |
#include <bits/stdc++.h> | |
using namespace std; | |
int dx[10001],dy[1001],r[1001],n; | |
int check(int x,int y) | |
{ | |
for(int i=0;i<n;i++) | |
if(((x-dx[i])*(x-dx[i]))+((y-dy[i])*(y-dy[i]))<=r[i]*r[i]) | |
return 0; | |
return 1; |
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
// working.cpp by Bill Weinman <http://bw.org/> | |
#include <bits/stdc++.h> | |
using namespace std; | |
int main() | |
{ | |
string s; | |
int count=0; | |
cin>>s; | |
for(int i=0;i<s.size();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
// working.cpp by Bill Weinman <http://bw.org/> | |
#include <bits/stdc++.h> | |
using namespace std; | |
int main() | |
{ | |
long long n,b,min=0,max=pow(10,9),num1,num2,count1=0,count2=0; | |
cin>>n; | |
for(int i=0;i<n;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
// working.cpp by Bill Weinman <http://bw.org/> | |
#include <bits/stdc++.h> | |
using namespace std; | |
int main() | |
{ | |
int abcde,fghij,n; | |
while(cin>>n) | |
{ | |
for(fghij=1234;fghij<98765/n;fghij++) | |
{ |
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
// working.cpp by Bill Weinman <http://bw.org/> | |
#include <bits/stdc++.h> | |
using namespace std; | |
struct myfunc | |
{ | |
bool operator()(const vector<double>& s1, | |
const vector<double>& s2) const | |
{ | |
if(s1[0]==s2[0]) | |
return s1[1] < s2[1]; |
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
// working.cpp by Bill Weinman <http://bw.org/> | |
#include <bits/stdc++.h> | |
using namespace std; | |
int main() | |
{ | |
int n,m; | |
cin>>n>>m; | |
string s; | |
vector<int>s1; | |
vector<int>::iterator it; |
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
// working.cpp by Bill Weinman <http://bw.org/> | |
#include <bits/stdc++.h> | |
using namespace std; | |
int main() | |
{ | |
int n; | |
cin>>n; | |
vector<int>a(n); | |
for(int i=0;i<n;i++) | |
cin>>a[i]; |
NewerOlder