Skip to content

Instantly share code, notes, and snippets.

Avatar
☢️
approach with caution, might meltdown

Fahad Hossain fa7ad

☢️
approach with caution, might meltdown
View GitHub Profile
View pointInACircle.cpp
#include <bits/stdc++.h>
using namespace std;
int main()
{
int cn;
ostringstream oss;
cin >> cn;
for (int i = 0; i < cn; i++) {
View maxNumber.cpp
#include <iostream>
#include <algorithm>
void clearIO()
{
int ch;
while ((ch = std::cin.get()) != std::cin.eof() && ch != '\n');
}
int main(int argc, char* argv[])
@fa7ad
fa7ad / triangleArea.cpp
Last active Mar 8, 2016
Area of Triangle - I tried to solve [this](https://algo.codemarshal.org/problems/556b5fc29c5e850300c49caf) using Heron's formula, but CodeMarshal won't accept it
View triangleArea.cpp
#include <iostream>
#include <cmath>
#include <algorithm>
#include <iomanip>
void clearIO()
{
int ch;
while ((ch = std::cin.get()) != std::cin.eof() && ch != '\n');
}
View CountNumbers.cpp
#include <iostream>
#include <algorithm>
#include <sstream>
#include <string>
#include <vector>
// Prototypes
std::string calculateMode(std::vector<int> array);
int main() {
View FizzBuzzExtreme.cpp
#include <iostream>
#include <string>
#include <sstream>
// Prototype
void clearBuf();
int main(){
int lines;
std::cin >> lines;
@fa7ad
fa7ad / chickenEgg.cpp
Last active Mar 18, 2016
Chicken-Egg problem for DIU algo challenge on CodeMarshal.
View chickenEgg.cpp
#include <bits/stdc++.h>
using namespace std;
int main()
{
int cn;
ostringstream out;
cin >> cn;
for(int i = 0; i < cn; i++){
long double term, counter = 0;
@fa7ad
fa7ad / mTable.cpp
Last active Mar 18, 2016
Simple Multiplication table given the input. Codemarshal DIU challenge
View mTable.cpp
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
for(int i = 1; i < 11; i++){
cout << n << " x " << i << " = " << n*i << "\n";
}
@fa7ad
fa7ad / gist:fbe548a6844d80a259b30ff255421add
Created May 7, 2016
Sublime Text 3 Build 3083 License Key - CRACK
View gist:fbe548a6844d80a259b30ff255421add
### yo probe esta:
—– BEGIN LICENSE —–
J2TeaM
2 User License
EA7E-940282
45CB0D8F 09100037 7D1056EB A1DDC1A2
39C102C5 DF8D0BF0 FC3B1A94 4F2892B4
0AEE61BA 65758D3B 2EED551F A3E3478C
C1C0E04E CA4E4541 1FC1A2C1 3F5FB6DB
@fa7ad
fa7ad / custom.conf
Created Oct 18, 2016
/etc/gdm/custom.conf
View custom.conf
# GDM configuration storage
[daemon]
# Uncoment the line below to force the login screen to use Xorg
WaylandEnable=false
[security]
[xdmcp]
@fa7ad
fa7ad / ngon.cpp
Last active Mar 22, 2017
N-gon checker from codemarshal
View ngon.cpp
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long polygons;
cin >> polygons;
ostringstream outputText;
for (long long c = 0; c < polygons; c++)