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
| n = int(input()) | |
| scores = [] | |
| for i in range(0,n): | |
| score = int (input()) | |
| scores.append(score) | |
| maxscore = runnerup = scores[0] | |
| for score in scores: | |
| if score > maxscore: |
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
| input_string = input("Enter string: ") | |
| n = int (input("Enter n: ")) | |
| alphabets = 'abcdefghijklmnopqrstuvwxyz' | |
| reverse_lphabets = alphabets[::-1] | |
| dict1 = dict(zip(alphabets,reverse_lphabets)) | |
| prefix = input_string[0:n-1] | |
| suffix = input_string[n-1:] |
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> | |
| #include<iostream> | |
| #include<conio.h> | |
| using namespace std; | |
| int reverse(int n) | |
| { | |
| int ans=0; | |
| while(n>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<iostream> | |
| #include<conio.h> | |
| #include<math.h> | |
| using namespace std; | |
| bool isPrime(int num) | |
| { | |
| for(int i=2; i<=sqrt(num); i++) | |
| { | |
| if (num%i==0) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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> | |
| #include<cmath> | |
| #include<conio.h> | |
| using namespace std; | |
| bool check(int x,int y,int z) | |
| { | |
| int a =max(x, max(y,z)); | |
| int b,c; | |
| if(a==x) | |
| { |
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> | |
| #include<cmath> | |
| #include<conio.h> | |
| using namespace std; | |
| int32_t main() | |
| { | |
| int n; | |
| cin >> 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<bits/stdc++.h> | |
| #include<cmath> | |
| #include<conio.h> | |
| using namespace std; | |
| int32_t main() | |
| { | |
| int n; | |
| cin >> n; | |
| int reverse =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> | |
| #include<cmath> | |
| #include<conio.h> | |
| using namespace std; | |
| int32_t main() | |
| { | |
| int n; | |
| cin >> 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<stdlib.h> | |
| struct node | |
| { | |
| int data; | |
| struct node *left,*right; | |
| }; | |
| typedef struct node Node; | |
| Node *createnode(int data); |
NewerOlder