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
squares = [] | |
mx = 0 | |
class Square: | |
def __init__(self, height, val = 0): | |
if val == 0: | |
self.val = height | |
else: | |
self.val = val | |
self.height = height | |
def cont(self): |
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 <vector> | |
using namespace std; | |
int main(){ | |
int q; | |
cout << "Type the queries number: "; | |
cin >> q; | |
while(q--){ | |
string str; |
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 <vector> | |
using namespace std; | |
int calc(int temp, vector<int> &input, vector<int> &L, vector<vector<int>> &mem){ | |
if(L.size()==0){ | |
L.push_back(1); | |
mem.push_back(*new vector<int>(1,0)); | |
return 1; | |
} |
NewerOlder