Skip to content

Instantly share code, notes, and snippets.

View shohan4556's full-sized avatar
πŸ’»
Making things that does not Exists !!

Shohanur Rahaman shohan4556

πŸ’»
Making things that does not Exists !!
View GitHub Profile
@shohan4556
shohan4556 / euler 48 solution
Created February 11, 2015 19:49
euler 48 solution
/// Euler problem 48
#include<stdio.h>
#include<math.h>
int long long power(int long long n);
int main()
{
int long long ans,i,j;
#include<stdio.h>
#include<math.h>
// a. find out p=2^15
// b. print the last digit of p
int main()
{
int ans,i,n,j;
n=10;
@shohan4556
shohan4556 / wilson's thorem implemt in C
Created February 8, 2015 19:24
wilson's thorem implemt in C
#include<stdio.h>
int main()
{
int n,m,i,p,fact;
while(scanf("%d",&n)==1){
fact=1;
m=n;
for(i=1;i<=n-1;i++){
fact=(fact*i) %m;
}
@shohan4556
shohan4556 / UVA 10127 solution
Created February 7, 2015 19:50
UVA 10127 solution
#include<stdio.h>
int long long bigmod(int long long a ,int p,int m);
int main()
{
int long long a;
int long long p,m,n,t;
int c;
while(scanf("%lld",&n)==1){
/// UVA -10127
// Problem Name : Ones
#include<stdio.h>
int main()
{
int count,t,n;
int g=11;
while(scanf("%d",&n)==1){
@shohan4556
shohan4556 / quora 1593 help
Created February 5, 2015 05:34
quora 1593 help
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#define N 20000000
char num[N];
int binary(int n);
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#define N 20000000
char num[N];
int binary(int n);
@shohan4556
shohan4556 / Uva 11417 solution in C
Created February 4, 2015 19:24
Uva 11417 solution in C
/// Author : Md.Shohanur Rahaman
/// UVA -- 11417 (GCD)
// Problem Type : Math - Easy
#include<stdio.h>
int gcd(int a,int b);
int main()
{
int i,j,sum=0,n=0;
@shohan4556
shohan4556 / URI 1217 Solution in C
Created February 4, 2015 03:12
URI 1217 Solution in C
/// Author : MD.Shohanur Rahaman
// URI 1217--Getline Two - Fruits
#include<stdio.h>
#include<string.h>
int main()
{
float amt,avgtk,avgkg,total=0.0,t1;
@shohan4556
shohan4556 / URI -- 1555 (Functions)
Created February 1, 2015 05:29
URI -- 1555 (Functions)
/// Author : Md.Shohanur Rahaman
/// URI -- 1555 (Functions)
#include<stdio.h>
#include<math.h>
int main()
{
int long long x,y,rafa,beto,carl,test,i;
while(scanf("%lld",&test)==1){