- for each node (id) store the data in database
- when queried, use the relevant column
- use php logic to change id
: may use proc_open
php function
Click me{: .btn}
#include<bits/stdc++.h> | |
using namespace std; | |
#define ll long long int | |
const int base = 1000000000; | |
const int base_digits = 9; | |
struct bigint { | |
vector<int> a; | |
int sign; |
import numpy as np | |
md = 998244353 | |
for _ in range(int(input().strip())): | |
n,m,k = map(int,input().strip().split()) | |
g = [[] for x in range(n)] | |
# print(g) | |
for __ in range(m): | |
a,b = map(int,input().strip().split()) | |
a -= 1 | |
b -= 1 |
md = 1000000007 | |
def equal(s): | |
lent = len(s) | |
prev = [1 for __ in range(lent+1)] | |
another = [0 for __ in range(lent)] | |
another[0] = int(s[0]) | |
for i in range(1,lent): | |
another[i] = ((another[i-1]-1)*10+(int(s[i])+1)) | |
# another[i]=(md + another[i]) |
: may use proc_open
php function
Click me{: .btn}
https://github.com/<your user name>/contest.git
git remote add upstream https://github.com/harshraj22/contest.git
.#include <bits/stdc++.h> | |
#include <ext/pb_ds/assoc_container.hpp> | |
#include <ext/pb_ds/trie_policy.hpp> | |
using namespace std; | |
using namespace __gnu_pbds; | |
typedef trie<string,null_type, | |
trie_string_access_traits<>,pat_trie_tag, | |
trie_prefix_search_node_update> |
#include<bits/stdc++.h> | |
using namespace std; | |
int gcd(int a,int b); | |
int main(){ | |
int test=1; | |
while(test--){ | |
int i,k=0,n; | |
bool possible = true; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Parsec</title> | |
<!-- Stylesheets --> | |
<link href="css/bootstrap.css" rel="stylesheet" /> | |
<link href="css/style.css" rel="stylesheet" /> | |
<link href="css/responsive.css" rel="stylesheet" /> | |
<link href="css/devfolio.css" rel="stylesheet" /> |
git add upstream https://github.com/harshraj22/Practice_plan.git
(add upstream branch, as you created local git repo now, it isn't expected to have an upstream)
git fetch upstream
(fetch all changes from upstream to local repo)
git rebase upstream/master
(rebase your current branch from master of upstream, you can also use git merge --allow-unrelated-histories upstream/master
if you prefer merge commit)
git remote rm origin