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
| /// URI OJ : 1267 (Pascal Library) | |
| /// Author : Shohanur Rahaman | |
| /// Probem Type : Ad-Hoc | |
| #include<stdio.h> | |
| int main() | |
| { | |
| int i,j,tmp,ck; | |
| int ara[500][500]; | |
| int d,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> | |
| int extends_euclid(int a,int b,int &x,int &y); | |
| int main() | |
| { | |
| int a,b,x,y; | |
| int d; | |
| while(scanf("%d %d",&a,&b)==2){ |
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 ara[1000005]; | |
| int invara[1000005]; | |
| int main() | |
| { | |
| int n,i,count; | |
| while(scanf("%d",&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
| ///URI OJ :1663 | |
| ///Author : Shohanur Rahaman | |
| #include<stdio.h> | |
| int ara[1000005]; | |
| int invara[1000005]; | |
| int main() | |
| { |
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
| /// URI : 1436 | |
| /// Author : Shohanur Rahaman | |
| #include<stdio.h> | |
| int main() | |
| { | |
| int tc,n,i,tmp,j; | |
| int player[9]; | |
| int t=0; | |
| scanf("%d",&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
| /// URI : 1467 -- Zero or One | |
| /// Author : Shohanur Rahaman | |
| #include<stdio.h> | |
| int main() | |
| { | |
| int a,b,c; | |
| while(scanf("%d %d %d",&a,&b,&c)==3){ | |
| if(a==0 && b==0 && c==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
| /// Author : Shohan | |
| /// URI OJ : 1426 - Add Bricks in The Wall | |
| #include<stdio.h> | |
| int row2(int, int ); | |
| int row(int ,int ,int ); | |
| int ara9[9],ara2[2],ara4[4],ara6[6],ara8[8],ara3[3],ara5[5],ara7[7]; | |
| int r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14,r15,r16; |
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
| /// URI : 1609 | |
| /// Author : Shohanur Rahaman | |
| #include<stdio.h> | |
| #include<stdlib.h> | |
| #include<string.h> | |
| int ara[10000]; | |
| int main() | |
| { |
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
| /// Author : Shohan | |
| /// URI Oj - 1743 (Automated Checking Machine) | |
| /// Mail : shohan4556@gmail.com | |
| #include<stdio.h> | |
| #define N 5 | |
| int correct[N]; | |
| void corre(int ara[]); |
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 <algorithm> | |
| using namespace std; | |
| int gcd(int a, int b, int &x, int &y) { | |
| if (a == 0) { | |
| x = 0; y = 1; | |
| return b; | |
| } |