Skip to content

Instantly share code, notes, and snippets.

View thinkphp's full-sized avatar

Adrian Statescu thinkphp

View GitHub Profile
@thinkphp
thinkphp / Title.svelte
Created January 3, 2020 14:57
Title.Svelte
<script>
export let name;
export let version;
export let speed;
export let website;
</script>
<h1>Goldback's conjecture</h1>
<p>
The <code>{name}</code> package is {speed} fast.<br/>
@thinkphp
thinkphp / goldbach.svelte
Last active January 3, 2020 15:44
Goldbach's conjecture
<script>
import Title from './Title.svelte';
import Footer from './Footer.svelte';
const pkg = {
name: 'svelte',
version: 3,
speed: 'thinkphp',
website: 'http://thinkphp.github.com/'
};
@thinkphp
thinkphp / subsets.c
Created December 30, 2019 21:18
Subsets of a set.
#include <stdio.h>
#define MAX_SIZE 100
struct Stack {
int size,
data[MAX_SIZE];
};
typedef struct Stack Stack;
@thinkphp
thinkphp / quadratic.c
Last active December 30, 2019 14:53
Solving Quadratic Equation.
#include <stdio.h>
#include <math.h>
#define FIN "quadratic.in"
#define FOUT "quadratic.out"
typedef struct Q {
float a,
b,
c;
@thinkphp
thinkphp / fta.c
Created December 30, 2019 08:35
Fundamental Theorem of Arithmetic.
#include <stdio.h>
int main(int argc, char const *argv[])
{
int n, fm, i;
printf("%s", "n=");
scanf("%d", &n);
@thinkphp
thinkphp / innerCircle.c
Created December 28, 2019 09:00
Circle and Point: inside, outside or on the board.
#include <stdio.h>
#include <math.h>
struct TPoint {
float x,
y;
};
typedef struct TPoint Point;
@thinkphp
thinkphp / database.in
Created December 27, 2019 17:06
my table for test
11
Adrian Statescu Google 10
Mircea Pasoi Twitter 5
Cristian Strat Twitter 7
Rasmus Lerdorf Microsoft 11
Yukihiro Matzomoto Ruby 30
Guidovan Rossum Python 10
Denis Ritchie CLang 15
Bjarne Stroustroup CPluplus 97
Ken Thomson Google 101
@thinkphp
thinkphp / collinear.c
Created December 27, 2019 07:36
The points are collinear.
#include <stdio.h>
struct TPoint {
double x,
y;
};
typedef struct TPoint TPoint;
int main() {
@thinkphp
thinkphp / fractions.c
Created December 26, 2019 22:06
Add two Fractions in C language.
#include <stdio.h>
struct TFractie {
int nr,
num;
};
typedef struct TFractie Fractie;
@thinkphp
thinkphp / complex.c
Last active December 26, 2019 20:08
Complex Number a+ib
/*
* Author : Adrian Statescu <mergesortv@gmail.com>
* Description: Complex Numbers a + ib + c + id
* Read, Display, Sum, Prod, Div
*/
#include <stdio.h>
#define FIN "complex.in"
#define FOUT "complex.out"
struct TComplex {