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 <cstdio> | |
#include <cmath> | |
#include <algorithm> | |
using namespace std; | |
int n, i; | |
pair<double, double> island[1005]; | |
int solve() { |
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 <stdio.h> | |
#include <string.h> | |
int i, m, k, p[505]; | |
long long int upper, lower; | |
void solve() { | |
int cnt, slash[505]; | |
long long int mid, sum; |
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 <stdio.h> | |
int m, d, y; | |
int month[13]={0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; | |
char weekName[7][10]={"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}; | |
char monthName[13][10] = {"", "January","February","March","April","May","June", | |
"July","August","September","October","November","December"}; | |
int isLeap(int x) { | |
return x <= 1752 ? x % 4 == 0 : (x % 4 == 0 && x % 100 != 0) || x % 400 == 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 <stdio.h> | |
#include <string.h> | |
int N, M; | |
int c[100005]; | |
int e[100005]; | |
void init() { | |
int i; | |
for(i = 0; 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 <stdio.h> | |
#include <string.h> | |
int f[10005]; | |
char W[10005]; | |
char T[1000005]; | |
int solve() { | |
int i, j = -1, ans = 0; | |
int wlen = strlen(W); |
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 <stdio.h> | |
#include <string.h> | |
int selfNumber[1000005]; | |
int main(void) | |
{ | |
int i, x, t; | |
memset(selfNumber, 1, sizeof(selfNumber)); |
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 <stdio.h> | |
#include <string.h> | |
int main(void) | |
{ | |
char str[55]; | |
while(scanf("%s", str)!=EOF && str[0]!='#') | |
{ | |
int i, j, k, t; |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int cmp(const void *a, const void *b) | |
{ | |
return *(char*)a - *(char*)b; | |
} | |
int main(void) |
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 <stdio.h> | |
#include <string.h> | |
int main(void) | |
{ | |
int catalan[105][200], i, j; | |
memset(catalan, 0, sizeof(catalan)); | |
catalan[0][0]=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 <stdio.h> | |
#include <math.h> | |
int main(void) | |
{ | |
int n, casenum=1; | |
while(scanf("%d", &n) && n!=0) | |
{ | |
int i, j, k, flag[205][205]={0}, stone[205][2]; |
NewerOlder