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; | |
| char upper(char a){ | |
| if(a >= 97 && a<= 122){ | |
| return (char)((int)a-32); | |
| } | |
| return a; | |
| } | |
| int main() { | |
| string s="",t; |
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; | |
| map<string,int>var; | |
| void sett(string s,string ss){ | |
| if(var.find(ss) != var.end()){ | |
| var[s]=var[ss]; | |
| }else if(ss[0]>=48 && ss[0]<=57){ | |
| var[s]=stoi(ss); | |
| }else{ | |
| var[s]=0; |
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 func(int cur,int n,string str,long long int las){ | |
| if(cur==n){ | |
| return 1; | |
| } | |
| long long int sum=0; | |
| long long int ans=0; | |
| for(int i=cur;i<n;i++){ | |
| sum+=(str[i]-'0'); |
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 min_dis(string s1,string s2){ | |
| int l1=s1.length(); | |
| int l2=s2.length(); | |
| int dp[l2+1][l1+1]; | |
| int i,j; | |
| for(i=0;i<l1+1;i++){ | |
| dp[0][i]=i; | |
| } |
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<stdio.h> | |
| int main() | |
| { | |
| printf("hello"); | |
| return 0; | |
| } |
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 <stdio.h> | |
| int tree[2*100000+4]={0}; | |
| long long int a[100000+4]; | |
| void build(int node,int start,int end) | |
| { | |
| if(start==end) | |
| { | |
| if(a[start]%2==0) | |
| tree[node]=1; | |
| else |
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<stdio.h> | |
| #include<stdlib.h> | |
| int mod(int a){ | |
| if(a<0){ | |
| return (-1*a); | |
| } | |
| else return (a); | |
| } | |
| int main() | |
| { |