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
/* | |
Solution for full marks uses binary search | |
*/ | |
#include <bits/stdc++.h> | |
#define ll long long | |
#define pb push_back | |
#define f first | |
#define s second |
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> | |
#define ll long long | |
#define pb push_back | |
#define f first | |
#define s second | |
#define what_is(a) cout << #a << " is " << a << "\n"; | |
#define shit cout << "shit" << "\n"; | |
#define pi pair<int,int> |
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; | |
struct subset{int parent,rank;}; | |
struct edge{int u,v,w;}; | |
bool comp(edge a,edge b){ | |
return a.w < b.w; |
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 int long long | |
#define what_is(a) cout << #a << " is " << a << "\n" | |
#define checker(a) cout << "checker reached " << a << "\n" | |
inline void io(){ | |
ios_base::sync_with_stdio(false); |
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 int long long | |
#define what_is(a) cout << #a << " is " << a << "\n" | |
#define checker(a) cout << "checker reached " << a << "\n" | |
inline void io(){ | |
ios_base::sync_with_stdio(false); |
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 int long long | |
#define what_is(a) cout << #a << " is " << a << "\n" | |
#define checker(a) cout << "checker reached " << a << "\n" | |
inline void io(){ | |
ios_base::sync_with_stdio(false); |
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 int long long | |
struct Flight | |
{ | |
int start, finish, profit; | |
}; |
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
/** | |
* @author Lakshith Nishshanke | |
* @brief | |
* @version 0.1 | |
* @date 2021-10-23 | |
* | |
* @copyright Copyright (c) 2021 | |
* | |
* Used a greedy approach. Sorted time frames first by their starting time,second by their endind time. | |
* And then greedily checked if it is possible to reserve dates in the sorted order. |
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; | |
int C,P; | |
struct projectStruct{ | |
string name; | |
int days; |
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
import torch | |
import torchvision | |
from torch import nn | |
from torch import optim | |
import pandas as pd | |
import numpy as np | |
from torch.utils.data import Dataset | |
from sklearn.preprocessing import maxabs_scale | |
from torch.utils.tensorboard import SummaryWriter |
OlderNewer