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<string> | |
using namespace std; | |
int main() | |
{ | |
int N,Ans=1,Temp,i,f; | |
while (cin >> N) | |
{ | |
Ans = 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> | |
using namespace std; | |
int main() | |
{ | |
int a[100002]; | |
int N, t1 = 0, t2 = 1; | |
a[0] = 0; | |
a[1] = 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<sstream> | |
#include<string> | |
using namespace std; | |
int main() | |
{ | |
string line; | |
stringstream ss; // put the line into these stream to input words from it intead of cin | |
string word; | |
while (getline(cin, line)){ |
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; | |
int main() | |
{ | |
string line; | |
bool counte=false; | |
int size; | |
while (getline(cin, line)) | |
{ |
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; | |
bool composite(int x) | |
{ | |
for (int i = x / 2; i > 1; i--) | |
{ | |
if (x%i == 0) | |
return true; | |
} | |
return false; |
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; | |
int main() | |
{ | |
string line; | |
int size; | |
while (getline(cin, line)) | |
{ | |
size=line.size(); |
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,i=0,f; | |
while (true) | |
{ | |
cin >> x; | |
if (x == 0) | |
break; |
OlderNewer