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; | |
int main() | |
{ | |
int x, n, m; | |
while (cin >> n >> m) | |
{ | |
if (m > n) | |
x = -1; | |
else |
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 <string> | |
using namespace std; | |
#include <windows.h> | |
HANDLE outcon = GetStdHandle(STD_OUTPUT_HANDLE); | |
bool end22 = false; | |
bool solved = false; | |
void gotoxy(short x, short 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 <iostream> | |
using namespace std ; | |
void main () | |
{ | |
int *temp,start,*return_to_a ; | |
bool first= true; | |
cout<<"Please start entering numbers"<<endl; | |
while(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
#include <iostream> | |
#include <algorithm> | |
#include <cmath> | |
using namespace std; | |
long double sec(long double a, long double b, long double c) | |
{ | |
long double del = b*b - 4 * a *c; | |
long double x1 = (-sqrt(del) - b) / 2*a; | |
long double x2 = (sqrt(del) - b) / 2*a; | |
if (x1 > 0 && x1 < 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 <iostream> | |
#include <vector> | |
using namespace std; | |
int main() | |
{ | |
double h=0; | |
double p1, p2, p3; | |
int n; | |
cin >> p1; |
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> | |
using namespace std; | |
int main() | |
{ | |
double h=0; | |
double p1, p2, p3; | |
int n; | |
cin >> p1; |
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> | |
using namespace std; | |
int main() | |
{ | |
char m; | |
int xs, ys,n1,n2,tx,ty,coun=0; | |
vector < vector <int> > a; |
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> | |
using namespace std; | |
int main() | |
{ | |
vector <int> a; | |
vector <int> ans; | |
int n,maxx=0,t; | |
cin >> t; | |
while (t--) |
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> | |
#include <string> | |
using namespace std; | |
int main() | |
{ | |
vector <int> a1, a2; | |
int n,tempp; | |
string 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 <iostream> | |
#include <vector> | |
using namespace std; | |
vector <vector <char> > a; | |
int count(int x,int y) | |
{ | |
int coux=0, couy=0; | |
for (int i = 0; i < a[x].size(); i++) | |
{ | |
if (a[x][i] == 'H') |
NewerOlder