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 <bits/stdc++.h> | |
| #define MEM(a,b) memset((a),(b),sizeof(a)) | |
| #define MAX(a,b) ((a)>(b)?(a):(b)) | |
| #define MIN(a,b) ((a)<(b)?(a):(b)) | |
| #define MIN4(a,b,c,d) MIN(MIN(MIN(a,b),c),d) | |
| #define In freopen("In.txt", "r", stdin); | |
| #define Out freopen("out.txt", "w", stdout); | |
| #define i64 long long |
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() | |
| { | |
| int i,j; | |
| int coinNumber; | |
| int coinNumberStore[10]; | |
| int highestGivingTotal = 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 main() | |
| { | |
| int i,j; | |
| int coinNumber; | |
| int coinNumberStore[10]; | |
| int coinChange[102]; |
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 <cstring> | |
| #define max 1000 | |
| using namespace std; | |
| char a[max],b[max]; | |
| int c[max][max]; | |
| int maximum(int x,int y) |
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<string.h> | |
| #include<algorithm> | |
| #define s 100 | |
| using namespace std; | |
| typedef struct tag | |
| { |
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 <bits/stdc++.h> | |
| using namespace std; | |
| #define MIN(a,b) ((a)<(b))?(a):(b) | |
| int extra(char lhs,char rhs) | |
| { | |
| if(lhs == rhs) | |
| return 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 <bits/stdc++.h> | |
| #define MEM(a,b) memset((a),(b),sizeof(a)) | |
| #define MAX(a,b) ((a)>(b)?(a):(b)) | |
| #define MIN(a,b) ((a)<(b)?(a):(b)) | |
| #define In freopen("In.txt", "r", stdin); | |
| #define Out freopen("out.txt", "w", stdout); | |
| #define limit 10000000 | |
| using namespace std; | |
| int dp[limit+5]; |
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 <bits/stdc++.h> | |
| #define MEM(a,b) memset((a),(b),sizeof(a)) | |
| #define MAX(a,b) ((a)>(b)?(a):(b)) | |
| #define MIN(a,b) ((a)<(b)?(a):(b)) | |
| #define In freopen("In.txt", "r", stdin); | |
| #define Out freopen("out.txt", "w", stdout); | |
| using namespace std; | |
| class myString |
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 <bits/stdc++.h> | |
| #define MEM(a,b) memset((a),(b),sizeof(a)) | |
| #define MAX(a,b) ((a)>(b)?(a):(b)) | |
| #define MIN(a,b) ((a)<(b)?(a):(b)) | |
| #define In freopen("In.txt", "r", stdin); | |
| #define Out freopen("out.txt", "w", stdout); | |
| #define m 100 | |
| using namespace std; |
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 <bits/stdc++.h> | |
| #define MEM(a,b) memset((a),(b),sizeof(a)) | |
| #define MAX(a,b) ((a)>(b)?(a):(b)) | |
| #define MIN(a,b) ((a)<(b)?(a):(b)) | |
| #define In freopen("In.txt", "r", stdin); | |
| #define Out freopen("out.txt", "w", stdout); | |
| using namespace std; | |
| vector<int> edge[100], cost[100]; |