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 : Md.Shohanur Rahaman | |
| /// URI --1761 (Christmas Decorations) | |
| /// Easy Problem | |
| #include<stdio.h> | |
| #include<math.h> | |
| #define PI 3.141592654 | |
| 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
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package edu_database; | |
| import java.util.*; | |
| /** |
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 main() | |
| { | |
| int n=0,ans=0; | |
| while(scanf("%d",&n)==1){ | |
| ans=(60*n)/30; | |
| printf("%d minutos\n",ans); // formula : time= (input*60)/(Y-X) | |
| } | |
| return 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
| package projecteuler; // replace | |
| import java.math.BigInteger; | |
| /** | |
| * | |
| * @author Shohan | |
| */ | |
| public class euler16 { |
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 | |
| /// Uva 10394 (Twin prime) | |
| #include<stdio.h> | |
| #include<math.h> | |
| #include<string.h> | |
| #define N 20000000 | |
| char p[N]; | |
| unsigned long long int tp[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
| /// Author : Shohan | |
| // URI - 1582 | |
| #include<stdio.h> | |
| int ckpytha(int a,int b,int c); | |
| int gcd(int a,int b); | |
| 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 : Md. Shohanur Rahaman | |
| /// Uva --11171 | |
| #include<stdio.h> | |
| int main() | |
| { | |
| int long tc,a,b; | |
| scanf("%ld",&tc); | |
| while(tc--){ | |
| scanf("%ld %ld",&a,&b); |
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 : Md. Shohanur Rahamana | |
| // Uva - 374 | |
| // Problem Type : Same as Problem Name (Big Mod) | |
| #include<stdio.h> | |
| int long long bigmod(int long long a,int long long p,int long long m); | |
| int main() | |
| { | |
| int long long a,p,m,res; |
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
| import java.math.BigInteger; | |
| /** | |
| * | |
| * @author Shohan | |
| */ | |
| public class Factorial { | |
| public static void main(String args[]){ | |
| int n=99; | |
| String fact= calculateFactorial(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
| /// Author : Md. shohanur Rahaman | |
| #include<stdio.h> | |
| #include<string.h> | |
| #define N 250 | |
| #define B 10 | |
| int main() | |
| { | |
| int fact[N],i,j,n,size=0,carry=0,tmp=0,a; |