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 sd(a) scanf("%d", &a) | |
| #define sl(a) scanf("%lld", &a) | |
| #define ll long long | |
| ll a[100010], b[100010]; | |
| int main() |
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; | |
| void printer(int** a, int r, int c) | |
| { | |
| cout << endl; | |
| for ( int i = 0 ; i <= r ; i++ ) | |
| { | |
| for ( int j = 0 ; j <= c ; j++ ) | |
| { | |
| cout << a[i][j] << " "; |
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
| def readfile(filename): | |
| with open(filename, "r") as f: | |
| tot = 0 | |
| for line in f.readlines(): | |
| line = line[:len(line)-1] | |
| l = len(line) | |
| count = 0 | |
| print(line) | |
| for ch in line: | |
| if ch in ['\\' ,'\"']: |
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
| def getdata(filename): | |
| d = dict() | |
| with open(filename, "r") as f: | |
| for line in f.readlines(): | |
| line = line.replace('\n', '').split(' -> ') | |
| d[line[1]] = line[0] | |
| return d | |
| def evaluate(var, d): | |
| try: | |
| val = int(var) |
NewerOlder