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; | |
| typedef unsigned ull; | |
| void setmax( int &a, int b) { if(a<b) a=b; } | |
| ull res; | |
| #define MAX 50005 | |
| int rem; //0..999 | |
| int YEARS; //40 |
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 a[3]={1,1,1}; | |
| int p[3]={1,1,1}; | |
| int main() | |
| { | |
| int n; | |
| scanf("%d", &n); | |
| while(--n) |
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 val[2000010]; | |
| int mx[2000010]; | |
| int K,N; | |
| void setmax(int &a, int b) {if(a<b) a=b;} | |
| int build(int Node, int start, int end) |
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> | |
| #include <stack> | |
| #include <vector> | |
| #include <algorithm> | |
| using namespace std; | |
| char str[]="ALLIZZWELL"; | |
| int v[105][105]; |
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 <algorithm> | |
| using namespace std; | |
| const int MAX=100025; | |
| class _x{ | |
| public: | |
| int s,e; | |
| }v[MAX]; |
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 <algorithm> | |
| using namespace std; | |
| const int MAX=100025; | |
| int N,A,B; | |
| int v[MAX]; | |
| int min2(int a, int b) { |
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> | |
| #include <stack> | |
| #include <vector> | |
| #include <algorithm> | |
| using namespace std; | |
| char str[]="ALLIZZWELL"; | |
| int v[105][105]; |
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> | |
| #include <algorithm> | |
| using namespace std; | |
| const long long int mod = 1000000007; | |
| class _matrix{ | |
| public: | |
| long long int x[2][2]; | |
| int n,m; |
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 <algorithm> | |
| using namespace std; | |
| class _x{ | |
| public: int s, e, p,m; | |
| }VAL[10005]; | |
| int N; |
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
| /* | |
| * Author : JAYAPRAKASH S | |
| * Maximum liklihood estimator for Laplace density function | |
| * Mail : first_name [at] cse [dot] iitb [dot] ac [dot] com | |
| * Please mail me, if any error is found. | |
| */ | |
| import java.util.ArrayList; | |
| import java.util.Collections; |