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> | |
using namespace std; | |
int n; | |
int fn(int n); | |
int main() | |
{ | |
cin>>n; | |
while (!cin.eof()) | |
{ | |
int ret =fn(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
#include <vector> | |
#include <string> | |
#include <algorithm> | |
#include <cmath> | |
using namespace std; | |
class CompletingBrackets { | |
public: | |
string complete(string text) |
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 <cstdio> | |
#include <string> | |
#include <vector> | |
using namespace std; | |
class RectangleGroups | |
{ | |
public: | |
string maximalIndexed(vector<string> rectangles) | |
{ |
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 <cstdio> | |
#include <string> | |
#include <vector> | |
using namespace std; | |
class IntegerSequence | |
{ | |
public: | |
int maxSubsequence(vector<int> numbers) | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace MyClass | |
{ | |
class StepperMotor | |
{ | |
public int rotateToNearest(int n, int current, int[] target) |
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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace Fileter | |
{ | |
class HelloWorld | |
{ | |
int median(int a, int b, int c) | |
{ |
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 <fstream> | |
using namespace std; | |
int price[5001]; | |
int next[5001]; | |
int maxlen[5001]; | |
int N; | |
ifstream fin("buylow.in"); | |
ofstream fout("buylow.out"); | |
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 <string> | |
#include <fstream> | |
#include <algorithm> | |
using namespace std; | |
int F,R,F1,F2,R1,R2; | |
double nF[11],nR[11]; | |
double nres[121]; | |
double ansF[121],ansR[121]; | |
double minvar = 0x7fffffff; |
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 <fstream> | |
using namespace std; | |
int N,M; | |
int capacity[410][410]; | |
class node | |
{ | |
public: | |
int n; | |
int pre; | |
}; |
NewerOlder