Skip to content

Instantly share code, notes, and snippets.

View test.cpp
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
int main(void){
unsigned long long int testN;
int x, y;
bool b = false;
View gist:0bc037ea1e1305efca4fe240776d4e8c
#include <iostream>
using namespace std;
int main(void){
int x,y;
bool b = false;
cin >> x;
y = 2;
View ac.cpp
#include <iostream>
#include <stdio.h>
using namespace std;
int main(void){
int x,y;
cin >> x;
y = 2;
View cwe.cpp
#include<iostream>
using namespace std;
int main(void){
int x,y;
cin >> x;
y = 2;
while (x > 1){
View zad.pas
PROGRAM baraba;
TYPE
niz = ARRAY[1..100] OF integer;
VAR
x: niz;
n: integer;
PROCEDURE unos(VAR x: niz; n: integer);
VAR
i: integer;
View gist:bb97dd401b7b3d8f8f8de6e640ba44f5
PROGRAM z46;
TYPE niz = ARRAY[1..100] OF integer;
VAR
x: niz;
i, n, cNZD: integer;
PROCEDURE unos(n: integer; var x: niz);
VAR i: integer;
BEGIN
FOR i:=1 TO n DO
BEGIN
View Z45.pas
PROGRAM z45;
TYPE niz = ARRAY[1..100] OF integer;
VAR
x, y : niz;
n, i, j : integer;
PROCEDURE unos(n: integer; var x: niz);
VAR i: integer;
BEGIN
FOR i:=1 TO n DO
BEGIN
View Z44.pas
PROGRAM z44;
TYPE niz = ARRAY[1..100] OF integer;
VAR
x: niz;
n: integer;
PROCEDURE unos(n: integer; var x: niz);
VAR i: integer;
BEGIN
FOR i:=1 TO n DO
View ss.lua
local delayAm = 1; -- Default delay amount, in seconds
local countdown = 5; -- Countdown amount
local initDotAm = 4; -- Amount of dots when initializing
local initDotAmCur = 0; -- Used in initText, DO NOT change by hand
local startTextDelay = 0.3; -- Used in slap text
local perTextDelay = 0.1; -- Delay between letters in perText*()
local waitProsSpawn = 10; -- When are we sure all the props are spawned?
local function isWhitespace(s)
return (s == ' ');
View xa1.pas
program zadatak2;
type niz = array[1..1000] of integer;
var
x, y: niz;
i, j, minI, n: integer;
minS, s: real;
function dist(x0, y0, x1, y1: integer): real;
begin
dist := sqrt((x0-x1)*(x0-x1)+(y0-y1)*(y0-y1));