Skip to content

Instantly share code, notes, and snippets.

@opilar
opilar / realminmax.pas
Created November 4, 2012 16:30
real min max
var
a, b : Real;
begin
Readln (a, b);
if a > b then
Writeln ("Min: ", b, ", Max: ", a)
else
Writeln ("Min: ", a, ", Max: ", b);
end.
@opilar
opilar / templatec.sublime-snippet
Created October 26, 2012 11:39
Init template C
<snippet>
<content><![CDATA[
#include <stdio.h>
#define SIZE 10000
int main ()
{
// freopen ("input.txt", "r", stdin);
// freopen ("output.txt", "w", stdout);
@opilar
opilar / todo.todo
Created October 14, 2012 12:12
test
Pojects:
☐ Test #1
☐ Test #2
☐ Test #3
@opilar
opilar / 118.cpp
Created May 19, 2012 16:30
118.acmp | Josephus problem
#include <iostream>
using namespace std;
// ifstream cin ("input.txt");
// ofstream cout ("output.txt");
struct elem
{
int n;
elem* next;
@opilar
opilar / template.cpp
Created January 7, 2012 18:53
Default template for C++.
#include <fstream>
using namespace std;
ifstream cin ("input.txt");
ofstream cout ("output.txt");
int main ()
{