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 / Projecteuler 21 solution in C
Last active August 29, 2015 14:15
Projecteuler 21 solution in C
/// Solved By Shohanur Rahaman
#include<stdio.h>
#include<math.h>
int sumofdiv(int n);
int main()
{
@shohan4556
shohan4556 / URI 1323 solution
Created February 14, 2015 02:50
URI 1323 solution
/// Author : Shohan
/// URI 1323
/// Problem level : Easy
#include<stdio.h>
int main()
{
int ans,n,t;
while(scanf("%d",&n)==1){
if(n==0)
@shohan4556
shohan4556 / Hackerearth -- In love with primes
Created February 13, 2015 04:43
Hackerearth -- In love with primes
#include<stdio.h>
#include<math.h>
int main()
{
int tc,n,i,a;
while(scanf("%d",&tc)==1){
for(i=1;i<=tc;i++){
scanf("%d",&n);
if(n%2==0 && n>=4){
@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);