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 <iostream> | |
#include <cstring> | |
using namespace std; | |
int i,nr; | |
char s[101],*p; | |
int main() | |
{ | |
cin.get(s,256); | |
p=strtok(s," "); | |
while(p!=0){ |
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 <iostream> | |
#include <math.h> | |
using namespace std; | |
int h1,m1,x,m2,h2,p,r; | |
int main() | |
{ | |
cin>>h1; | |
cin>>m1; |
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 <iostream> | |
using namespace std; | |
int x,y; | |
int main() | |
{ | |
cin>>x>>y; | |
if(x>y || x==y) | |
{ | |
cout<<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 <iostream> | |
using namespace std; | |
int a,b,c,d,Max3,Max2,Max1,S; | |
int main() | |
{ | |
cin>>a>>b>>c; | |
if(a>b&&a>c){ | |
Max3=a; |
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 <iostream> | |
using namespace std; | |
int i,n,v[1001]; | |
int main() | |
{ | |
cin>>n; | |
for(i=1;i<=n;i++) | |
cin>>v[i]; | |
for(i=1;i<=n;i++) |
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 <iostream> | |
using namespace std; | |
int i,n,v[1001]; | |
int main() | |
{ | |
cin>>n; | |
for(i=1;i<=n;i++) | |
cin>>v[i]; | |
for(i=2;i<=n;i=i+2) |
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 <iostream> | |
using namespace std; | |
int i,n,v[1001]; | |
int main() | |
{ | |
cin>>n; | |
for(i=1;i<=n;i++) | |
cin>>v[i]; | |
for(i=1;i<=n/2;i++) |
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 <iostream> | |
using namespace std; | |
int k,t,ok,x[201],y[201],i,j,n; | |
int main() | |
{ | |
cin>>n; | |
for(i=1;i<=n;i++) | |
cin>>x[i]; | |
for(i=n;i>=1;i--) |
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 <iostream> | |
using namespace std; | |
int nr_prim(int a, int b){ | |
int r; | |
int ok; | |
while(b!=0){ | |
r=a%b; | |
a=b; | |
b=r; |
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 <iostream> | |
using namespace std; | |
int v[53],n,j,i; | |
int main() | |
{ | |
cin>>n; | |
for(i=1;i<=n;i++) | |
cin>>v[i]; | |
for(i=1;i<=n;i++) |
NewerOlder