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 <stdio.h> | |
int main() | |
{ | |
int a,b; | |
int c; | |
scanf("%d %d", &a,&b); | |
c = a+b; | |
printf("%d", c); |
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 <stdio.h> | |
int main() | |
{ | |
long long a,b; | |
long long c; | |
scanf("%lld %lld", &a,&b); | |
c = a+b; | |
printf("%lld", c); | |
} |
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 <stdio.h> | |
#include <ctype.h> | |
int main () | |
{ | |
int i=0; | |
char str[500],c; | |
gets(str); | |
while (str[i]) | |
{ | |
c=str[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
#include<stdio.h> | |
int main(){ | |
int year,casos; | |
scanf("%ld",&casos); | |
while(casos>0){ | |
scanf("%ld",&year); | |
if (((year % 4)==0) && ((year % 100)!=0 || (year % 400)==0)) | |
printf("S\n"); | |
else | |
printf("N\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 <algorithm> | |
#include <stdio.h> | |
using namespace std; | |
int arr[50]; | |
int n,i,a,b,c; | |
int main() | |
{ | |
scanf("%d",&n); | |
for (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
#include <iostream> | |
#include <cstdio> | |
using namespace std; | |
int songs, iniv, maxim; | |
int slist[55], dp[50005][55]; | |
int main() | |
{ |
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 vis[102][102]; | |
int color; | |
int n, m; | |
int xf, yf; | |
char mapa[102][102]; |
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 <cstdio> | |
#include <queue> | |
using namespace std; | |
struct coord | |
{ | |
int x, y; | |
}np; |
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 <cstdlib> | |
#include <iostream> | |
#include <string.h> | |
using namespace std; | |
bool esprimo[100005]; | |
int fact[100005], n; | |
bool es_primo(int n) | |
{ | |
int si; | |
si = 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 <cstdio> | |
using namespace std; | |
int height, width, movs, opnum, opin; | |
int ops[10], board[105][105], nboard[105][105]; | |
void adjust() | |
{ |
OlderNewer