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 <iostream> | |
#include <cstdlib> | |
using namespace std; | |
class Rectangle{ | |
public: | |
double x,y; | |
double getArea(){ | |
return x * y; |
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 <iostream> | |
#include <cstdlib> | |
using namespace std; | |
class LinearEquasion{ | |
private: | |
double a,b; | |
public: | |
LinearEquasion(){ | |
cout << "Vuvedi a,b: "; |
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
// How much RF/t does the reactor have to make to pass the test basically | |
var requestedEstimateRFPerTick = 0; | |
var cellType = [ | |
{ character: 'C', name: 'Gelid Cryotheum'}, | |
{ character: 'E', name: 'Liquid Ender'}, | |
{ character: 'X', name: 'Control Rod' } | |
]; | |
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
local reactor; | |
local turbines = {}; | |
local monitor; | |
local optimalRPM = 1840 | |
local maxEnergyInBufferAllowed = 900000 | |
local currentRodsLevel = 50 | |
local numOfTurbines = 0 | |
local hotFluidUsed = 0 | |
local maxFuelUsage = 0 | |
local maxCasingTempAllowed = 400 |
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
local reactor = peripheral.wrap("right") | |
local RF_T = 0 | |
local bufferLastSec = 0 | |
while true do | |
RF_T = (reactor.getEnergyStored() - bufferLastSec)/20 | |
print("Energy Change: "..RF_T.." RF/t") | |
if reactor.getActive() == true and reactor.getEnergyStored() > 7000000 then | |
reactor.setActive(false) | |
end | |
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
(function (){ | |
})(); |
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
function runCleverbot(msg){ | |
$("#stimulus").val(msg).keyup(); | |
setTimeout(function (){ | |
console.log($(".bot").parent().find(":last-child")); | |
},3000); | |
} |
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 <iostream> | |
#include <cstdlib> | |
#include <fstream> | |
#include <string> | |
#include <cmath> | |
using namespace std; | |
int main(){ | |
ofstream file("zad_1.txt"); |
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 <iostream> | |
#include <cstdlib> | |
#include <fstream> | |
#include <string> | |
#include <cmath> | |
using namespace std; | |
int main(){ | |
ifstream file("zad_1.txt"); | |
string data = ""; | |
for(int i = 0; i < 5 * 2; i++){ |
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 <iostream> | |
using namespace std; | |
class Rect{ | |
public: | |
double a,b; | |
Rect(){ |
OlderNewer