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 <queue> | |
using namespace std; | |
int main() { | |
queue<int> fila; | |
int n, aux, i; | |
//int executed = 0; | |
while (cin >> 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
//http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=22&page=show_problem&problem=2003 | |
#include <string> | |
#include <vector> | |
#include <fstream> | |
#include <iostream> | |
#include <string.h> | |
#include <sstream> | |
#include <map> | |
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
#include <iostream> | |
#include <stack> | |
#include <queue> | |
using namespace std; | |
int main() { | |
int n, s, q, TC; | |
cin >> TC; | |
for (; TC > 0; TC--) { |
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 <stack> | |
#include <queue> | |
using namespace std; | |
int main() { | |
int SET = 0; | |
cin >> SET; | |
while(SET){ |
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
// 3n+1 | |
#include <iostream> | |
#include <cstdio> | |
using namespace std; | |
int main() { | |
int i, j, k, l, n, partial=0, maximum=0, resto, troca=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
//Division of NLogonia | |
#include <iostream> | |
using namespace std; | |
int main() { | |
int n, px, py, x, y; | |
cin >> n; | |
while (1) { | |
cin >> px >> py; | |
while (1) { | |
cin >> x >> y; |
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
//Big Numbers of Teams Will Solve This | |
#include <iostream> | |
#include <cstdio> | |
#include <string> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
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 <stdio.h> | |
#include <stdlib.h> | |
#include "hash.h" | |
extern int getLineNumber(void); | |
extern int isRunning(void); | |
%} |
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 <string> | |
#include <map> | |
#include <vector> | |
using namespace std; | |
map<string, int> Map; | |
string Name[105]; | |
vector<int> toNxt[105]; | |
int beConnected[105]; |
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 <cstring> | |
#include <vector> | |
using namespace std; | |
struct pos{ | |
int d; //0:North, 1:East, 2:South, 3:West | |
int z; //0:green, 1:white, 2:blue, 3:red, 4:black | |
int i; |
OlderNewer