Codeforces Round #378 (Div. 2), Problem: (A) Grasshopper And the String Solution in C

By |2017-04-07T22:11:51+00:00October 31st, 2016|Categories: C/C++, Programming|Tags: , , , , , , , , |

Hi guys , i just tried the Grasshopper problem , hope you might like it . #include int main(){ char a[101];int k=-1,i,max=0,s; scanf("%s",a); for(i=0;a[i]!='\0';i++) { if(a[i]=='A'||a[i]=='E'||a[i]=='I'||a[i]=='O'||a[i]=='U'||a[i]=='Y') {s=i-k;k=i; if(s>max) max=s;} }s=i-k; if(s>max) max=s; printf("%d",max); return 0; }

How To Reverse A String Without Reversing The Punctuation On That Line – The Shining Part 3 Problem Solution In C

By |2017-04-07T22:11:51+00:00October 31st, 2016|Categories: C/C++, Programming|Tags: , , , , , , |

The Shining-Part3 Assume, in \The Shining-Part3", the son makes it even worse by reversing the words in a sentence in place but leaving the punctuations as they are. For example, the son writes \NUR, REHTOM! REDRUM!!" to mean \RUN, MOTHER! MURDER!!". Now the mother [...]

Drawing A Hollow Rectangle Using Java

By |2017-04-07T22:11:51+00:00October 29th, 2016|Categories: Java, Programming|Tags: , , , , , , |

hello people, here is easy code for drawing a hollow rectangle using java. this code displays a rectangle of given length and width. Sample input: 4 5 Sample output ***** *      * *      * ***** import java.util.Scanner; public class hollowRectangle{ [...]

Drawing Isosceles Triangle of A Given Height Using Java

By |2017-04-07T22:11:51+00:00October 26th, 2016|Categories: Java, Programming|Tags: , , , , , , |

hey everyone so i tried write a code on drawing isosceles. if you have any easier ways to solve it do let me know... import java.util.Scanner; public class task{ public static void main(String args[]){ Scanner anik = new Scanner(System.in); System.out.println("give a line number"); int [...]

How to Calculate Summation of Maximum Value of Each Row of a Matrice in C Language

By |2017-04-07T22:11:51+00:00October 20th, 2016|Categories: C/C++, Programming|Tags: , , |

    Hi guys , I just tried to code How to Calculate Summation of Maximum Value of Each Row of a Matrice in C Language . Check the screenshot I’ve attached above . I hope you like it , and just let me [...]

Adding Two Matrices Vertically and Horizontally in C Language

By |2017-04-07T22:11:51+00:00October 20th, 2016|Categories: C/C++, Programming|Tags: , , , , , , |

  Hi guys , I just tried to code to add two matrices vertically and horizontally . Check the screenshot I’ve attached above . I hope you like it , and just let me know in comment if you have any better solution . [...]

Transpose Matrix With Summation and Difference Between Main and Transpose Matrix in C

By |2017-04-07T22:11:51+00:00October 20th, 2016|Categories: C/C++, Programming|Tags: , , , , , |

  Hi guys , I just tried to code of transpose matrix and then summation and difference between main and that transpose matrix . Check the screenshot I've attached above . I hope you like it , and just let me know in comment [...]

Codeforces Round #377 (Div. 2), problem: (C) Sanatorium, Solution in C++

By |2017-04-07T22:11:51+00:00October 17th, 2016|Categories: C/C++, Programming|Tags: , , , , |

Hi guys , I just solved the Codeforces Round #377 (Div. 2), problem: (C) Sanatorium , hope you like it . You are most welcome to submit any other solution . #include using namespace std; int main() { long long int a[3], t, i, [...]

Codeforces Round #377 (Div. 2), problem: (B) Cormen — The Best Friend Of a Man Solution in C++

By |2017-04-07T22:11:51+00:00October 17th, 2016|Categories: C/C++, Programming|Tags: , , , , , |

Hi guys , I just solved the Codeforces Round #377 (Div. 2), problem: (B) Cormen --- The Best Friend Of a Man, hope you like it . You are most welcome to submit any other solution . include using namespace std; int main() { [...]

CodeForces Round #377 (Div. 2), problem: (A) Buy a Shovel Solution in C++

By |2017-04-07T22:11:51+00:00October 17th, 2016|Categories: C/C++, Programming|Tags: , , , , , |

Hi guys , I just solved the CodeForces Round #377 (Div. 2), problem: (A) Buy a Shovel , hope you like it . You are most welcome to submit any other solution .       #include<bits/stdc++.h> using namespace std; int main() { int [...]