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 sys | |
from os import path | |
input = sys.stdin.readline | |
############ ---- Input Functions ---- ############ | |
# single integer | |
def inp(): | |
return(int(input())) | |
# array integers |
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
/** | |
* | |
* Arif Hosan | |
*American International University Bangladesh | |
* [email protected] | |
* | |
**/ | |
#include<bits/stdc++.h> | |
#define PI 2*acos(0.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
//Code Courtesy: Sakib vai.. :D | |
#include<iostream> | |
#include<algorithm> | |
#include<vector> | |
using namespace std; | |
const int SIZE = 1e6 + 10; | |
bool status[SIZE]; | |
vector<int>prime; | |
vector<int>divi; | |
int factor[SIZE], power[SIZE]; |
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
/** | |
* | |
* Arif Hosan | |
*American International University Bangladesh | |
* | |
**/ | |
#include<iostream> | |
#include<cstdio> | |
#include<algorithm> | |
#include<vector> |
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
/** | |
* | |
* Arif Hosan | |
*American International University Bangladesh | |
* | |
**/ | |
#include<iostream> | |
#include<cstdio> | |
#include<algorithm> | |
#include<vector> |
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
/** | |
* | |
* Arif Hosan | |
*American International University Bangladesh | |
* [email protected] | |
* | |
**/ | |
#include<bits/stdc++.h> | |
#define PI 2*acos(0.0) | |
#define SIZE 1000000 |
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<bits/stdc++.h> | |
#define PI 2*acos(0.0) | |
#define SIZE 1000000 | |
#define endl '\n' | |
int caseno=1; | |
#define CP() printf("Case %d: ",caseno++) | |
#define R() freopen("in.txt","r",stdin) | |
#define W() freopen("out.txt","w",stdout) | |
#define RW R(); W(); | |
#define SFI(_i) scanf("%d",&_i) |
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<cstring> | |
#include<string> | |
#include<stack> | |
#include<queue> | |
#include<vector> | |
#include<set> | |
#include<map> | |
#include<algorithm> | |
#include<cstdio> |
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
/* | |
Arif Hosan | |
AIUB, CSE | |
*/ | |
#include<iostream> | |
#include<cstring> | |
#include<string> | |
#include<stack> | |
#include<queue> | |
#include<vector> |
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<cstring> | |
#include<string> | |
#include<stack> | |
#include<queue> | |
#include<vector> | |
#include<set> | |
#include<map> | |
#include<algorithm> | |
#include<cstdio> |
NewerOlder