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; | |
| long long toint(string s) | |
| { | |
| int ret=0; | |
| for(int i=0; s[i]!='\0'; i++) | |
| { | |
| ret = ret*10+(s[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; | |
| bool oddeven(int n) | |
| { | |
| if(n%2==0) | |
| return true; | |
| else | |
| return false; | |
| } | |
| int uvaalgo( int n) |
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 <string.h> | |
| long long int toint(char a[]) | |
| { | |
| long long ret=0; | |
| int i; | |
| int siz= strlen(a); | |
| for( i=0; i<siz; i++) | |
| { | |
| ret = ret*10+(a[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> | |
| #define SI(a) cin>>a | |
| #define PI(a) cout<<a<<endl | |
| #define PIE(i,a) cout<<i<<" "<<a<<endl | |
| #define ll long long | |
| #define lli long long int | |
| using namespace std; | |
| lli reverse_number(lli n) | |
| { | |
| lli rev=0,reminder; |
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 main() | |
| { | |
| int tc,nu1,nu2,nu3,res,i=0; | |
| cin>>tc; | |
| while(tc--) | |
| { |
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> |
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
| /*the logic of this problem is to find out the distance between store and his car | |
| so simply we will twice the difference of maximum value and minimum value | |
| example . 7 30 41 14 39 42 max = 42 min= 7, difference is = 35 | |
| so the result is 35*2 =70 | |
| */ | |
| #include <bits/stdc++.h> |
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 int | |
| using namespace std; | |
| int main() | |
| { | |
| int a,b,temp; | |
| ll sum=0,sum1=0; | |
| cin>>a>>b; | |
| if(a>b) |
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
| /* | |
| bismillahir ragmanir rahim | |
| hey allah give me strength and stamina to solve these problems | |
| */ | |
| #include <bits/stdc++.h> | |
| using namespace std; |
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
| /*bismilla hir rahmanir rahim | |
| starting from the name allah | |
| */ | |
| #include <bits/stdc++.h> | |
| #define i int | |
| using namespace std; | |
| int main() |
OlderNewer