Skip to content

Instantly share code, notes, and snippets.

View AgrYpn1a's full-sized avatar
🎯
Focusing

Rastko Tojagic AgrYpn1a

🎯
Focusing
View GitHub Profile
#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
int checkDot(long x, long y) {
long tempX;
// ako tacke nemaju nule
if (x<0 || y<0) {
#include <iostream>
#include <string>
#include <vector>
using namespace std;
string r1, r2;
int checkViruses (const int x, const int y, const int l) {
short int matches;
#include <iostream>
#include <string>
#include <vector>
using namespace std;
string r1, r2;
int checkViruses (const int x, const int y, const int l) {
short int matches;
#include <iostream>
#include <string>
#include <vector>
using namespace std;
string r1, r2;
int checkViruses (const int x, const int y, const int l) {
short int matches;
Best of Sirius Chatbot:
____________________________________________
<@veK|TheD3X> ?8ball Shall I Eat a pizza?
<SiriusBot> Yes.
<@veK|TheD3X> THE BOT HATH SPOKETH!
____________________________________________
<@veK|TheD3X> ?8ball Can you believe that Raskto is spamming me on FB?
<SiriusBot> Unlikely, but possible.
<@veK|TheD3X> Hey!
<D3X|Krisko> i feel your pain on this one man :X
// promenljiva tipa Rigidbody2D
Rigidbody2D myRigidbody;
// start metoda poziva se na startu igre, dodeljuje promenljivoj myRigidbody, Rigidbody komponentu sa "ovog" game objekta
void Start() {
myRigidbody = this.gameObject.GetComponent<Rigidbody2D>();
}
// Mathf klasa matematickih funkcija, Abs(param) funkcija koja vraca apsolutnu vrednost
// proveravamo da li je brzina veca od neke kriticne brzine, recimo stavi 50, isprobaj taj bag jos par puta pa vidi pri kojoj
// brzini loptica nestaje pa to stavi kao critical speed
void FixedUpdate() {
// zadatak 2 -------------------------------------------------------------------------------------------------------------------
program prost;
var
n : array[1..100] of integer;
x, i, zbirProstih : integer;
// funkcija prost
function prost (x : integer) : integer;
var
i, brojac : integer;
/* Napisati program koji ucitava prirodan borj N, a zatim izracunava i stampa
drugu cifru (c), sa leve strane broja N, koja je veca od 3. Ukoliko N nema
dve cifre koje su vece od 3 ispisati odgovarajucu poruku. Primer, ako je N = 7326, C = 6
*/
#include <iostream>
#include <stdio.h>
using namespace std;
int izbroj_cifre(int broj);
<select ng-model="mera2">
<option ng-value="1000000">Kvadratni kilometar (km2)</option>
<option ng-value="1">Kvadratni metar (m2)</option>
<option ng-value="10000">Hektar (ha)</option>
<option ng-value="100">Ar (a)</option>
<option ng-value="5754.64">Katastarsko jutro (kj)</option>
<option ng-value="3.59665">Kvadratni hvat (hv)</option>
<option ng-value="4000">Dan oranja</option>
<option ng-value="7193.3">Lanac</option>
<option ng-value="100">Dulum</option>
/*
2 - 0 1 0
\ \ \ OR |
=======> (0 or 0) = 0; (1 or 1) = 1; (0 or 1) = 1; => 011
/ / /
3 - 0 1 1
===========================================================================
svaki prst je stepen 2, pocevsi od 0