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
//This program is for UVA 572 Oil Deposits | |
//Problem link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=7&page=show_problem&problem=513 | |
#include<iostream> | |
#include<stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
#define MAX 101 | |
using namespace std; |
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
//This program is for NTHU 5710 Stack | |
//題目來源 Problem link: http://140.114.86.38/problem.php?pid=5710 | |
#include<iostream> | |
#include<stdio.h> | |
#include<stack> | |
#include<string.h> | |
using namespace std; | |
stack<int> s; |
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
//This program is for NTHU 5711 Queue | |
//Problem link: http://140.114.86.38/problem.php?pid=5711 | |
#include<stdio.h> | |
#include<queue> | |
#include<string.h> | |
using namespace std; | |
queue<int> q; | |
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
//Google Code Jam Qualification Round 2014 - Problem A. Magic Trick | |
//https://code.google.com/codejam | |
#include<stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
int main() | |
{ | |
freopen ("a_output.txt","w",stdout); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Animate Your Name</title> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script> | |
<script type="text/javascript" src="http://s3.amazonaws.com/codecademy-content/courses/hour-of-code/js/alphabet.js"></script> | |
</head> | |
<body> | |
<canvas id="myCanvas"></canvas> | |
<script type="text/javascript" src="http://s3.amazonaws.com/codecademy-content/courses/hour-of-code/js/bubbles.js"></script> |
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
//This program is for Codeforces 416A Guess a number! | |
//題目來源 Problem link: http://codeforces.com/problemset/problem/416/A | |
/** my mistakes from code on paper | |
compiler errers: | |
1. reduceRange(char[] oper) --> reduceRange (char* oper) | |
2. char[] reverseOper(char op) --> char* reverseOper(char* op) | |
3. declare function reverseOper after the function reduceRange |
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
//This program is for ACM-ICPC 4660 - A+B | |
//Problem link: https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&category=29&page=show_problem&problem=2661 | |
#include<stdio.h> | |
#include<string.h> | |
using namespace std; | |
int changeBase(int n, int base) | |
{ | |
int len, sum = 0, tmp; |
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
//Google Code Jam Round 1B 2014 - Problem A.The Repeater (small input) | |
//https://code.google.com/codejam | |
#include<stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
#include<iostream> | |
using namespace std; | |
int findAns(char* str1, char* str2, int len1, int len2) |
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
//Google Code Jam - Round 1B 2014 - Problem B.New Lottery Game (small input) | |
//https://code.google.com/codejam | |
#include<stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
#include<iostream> | |
using namespace std; | |
int main() |
OlderNewer