This file contains 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.io.*; | |
import java.util.*; | |
import java.math.*; | |
import static java.lang.Math.*; | |
/** | |
This is my custom comeptitive programming setup. | |
@author Aniruddha Deb | |
*/ |
This file contains 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.io.*; | |
public class ECommerce { | |
// Constants to be used for the brands | |
public String availableBrands[] = { | |
"Samsung", | |
"Apple", | |
"OnePlus", | |
"LG", |
This file contains 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> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <math.h> | |
double genRand() { | |
return (double)rand()/RAND_MAX*2.0-1.0; | |
} | |
int main() { |
NewerOlder