Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <chrono>
- #include <thread>
- using namespace std;
- using namespace std::this_thread;
- using namespace std::chrono;
- using std::chrono::system_clock;
- void siedem() {
- cout << R"( _____
- `.___,'
- (___)
- < >
- ) (
- /`-.\
- / \
- / _ _\
- :,' `-.' `:
- | |
- : ;
- \ /
- `.___.' )" << endl;
- cout << "Udalo ci sie zrobic miksture! Gratuluje, liczba wrzuconych zebow byla podzielna przez 7, ale nie przez 13!" << endl;
- for (int i = 0; i < 5; ++i) {
- sleep_for(10ns);
- sleep_until(system_clock::now() + 1s);
- for (int j = 0; j < i; ++j) {
- cout << '.';
- }
- }
- cout << endl;
- }
- void trzy() {
- cout << R"( ________________
- ____/ ( ( ) ) \___
- /( ( ( ) _ )) ) )\
- (( ( )( ) ) ( ) )
- ((/ ( _( ) ( _) ) ( () ) )
- ( ( ( (_) (( ( ) .((_ ) . )_
- ( ( ) ( ( ) ) ) . ) ( )
- ( ( ( ( ) ( _ ( _) ). ) . ) ) ( )
- ( ( ( ) ( ) ( )) ) _)( ) ) )
- ( ( ( \ ) ( (_ ( ) ( ) ) ) ) )) ( )
- ( ( ( ( (_ ( ) ( _ ) ) ( ) ) )
- ( ( ( ( ( ) (_ ) ) ) _) ) _( ( )
- (( ( )( ( _ ) _) _(_ ( (_ )
- (_((__(_(__(( ( ( | ) ) ) )_))__))_)___)
- ((__) \\||lll|l||/// \_))
- ( /(/ ( ) ) )\ )
- ( ( ( ( | | ) ) )\ )
- ( /(| / ( )) ) ) )) )
- ( ( ((((_(|)_))))) )
- ( ||\(|(|)|/|| )
- ( |(||(||)|||| )
- ( //|/l|||)|\\ \ )
- (/ / // /|//||||\\ \ \ \ _)
- -------------------------------------------------------------------------------)" << endl;
- cout << "liczba wrzuconych zebow byla podzielna przez 13" << endl;
- for (int i = 0; i < 5; ++i){
- sleep_for(10ns);
- sleep_until(system_clock::now() + 1s);
- for (int j = 0; j < i; ++j) {
- cout << '.';
- }
- cout << endl;
- }
- }
- void siedemitrzy() {
- cout << R"( ( . )
- ) ( )
- . ' . ' . ' .
- ( , ) (. ) ( ', )
- .' ) ( . ) , ( , ) ( .
- ). , ( . ( ) ( , ') .' ( , )
- (_,) . ), ) _) _,') (, ) '. ) ,. (' ))" << endl;
- cout << "Wszystko stanelo w OGNIU! Wrzuciles liczbe zebow podzielna przez 7 i 13" << endl;
- for (int i = 0; i < 5; ++i) {
- sleep_for(10ns);
- sleep_until(system_clock::now() + 1s);
- for (int j = 0; j < i; ++j) {
- cout << '.';
- }
- cout << endl;
- }
- }
- void nie() {
- cout << R"( ____
- .'* *.'
- __/_*_*(_
- / _______ \
- _\_)/___\(_/_
- / _((\- -/))_ \
- \ \())(-)(()/ /
- ' \(((()))/ '
- / ' \)).))/ ' \
- / _ \ - | - /_ \
- ( ( .;''';. .' )
- _\"__ / )\ __"/_
- \/ \ ' / \/
- .' '...' ' )
- / / | \ \
- / . . . \
- / . . \
- / / | \ \
- .' / b '. '.
- _.-' / Bb '-. '-._
- _.-' | BBb '-. '-.
- (________mrf\____.dBBBb.________)____))" << endl;
- cout << "Nic sie nie stalo. Po prostu ci nie wyszlo." << endl;
- for (int i = 0; i < 5; ++i) {
- sleep_for(10ns);
- sleep_until(system_clock::now() + 1s);
- for (int j = 0; j < i; ++j) {
- cout << '.';
- }
- cout << endl;
- }
- }
- void malo() {
- cout << R"( _____________________________________________________________________
- |.============[_F_E_D_E_R_A_L___R_E_S_E_R_V_E___N_O_T_E_]============.|
- ||%&%&%&%_ _ _ _ _ _ _ _ _ _ _ _ _ %&%&%&%&||
- ||%&%&%&/||_||_ | ||\||||_| \ (_ ||\||_(_ /\|_ |\|V||_|)|/ |\ \%&%&%||
- ||&%.--.}|| ||_ \_/| ||||_|_/ ,_)|||||_,_) \/| ||| ||_|\|\_||{.--.%&||
- ||%/__ _\ ,-----,-'____'-,-----, /__ _\ ||
- ||||_ / \| [ .-;"`___ `";-. ] ||_ / \|||
- ||| \| || """""""""" 1 `).'.'.'`_ _'. '.'.(` A 76355942 J | \| ||||
- |||,_/\_/| // / .' '\ \\ |,_/\_/|||
- ||%\ / d8888b // | / _ _ | \\ .-"""-. \ /%||
- ||&%&--' 8P |) Y8 || //; a \a \ || //A`Y A\\ '--'%&||
- ||%&%&| 8b |) d8 || \\ '. _> .| || ||.-'-.|| |&%&%||
- ||%&%&| Y8888P || `| `-'_ ` | || \\_/~\_// |&%&%||
- ||%%%%| || ;'. ' ` / || '-...-' |%&%&||
- ||%&%&| A 76355942 J /;\ _.-'. `-..'`>-._ /;\ |%&%&||
- ||&%.--. (, ': \; >-'` ;` ,) .--.%&||
- ||%( 50 ) 1 """"""" _( \ ;...---""---...; / )_```"""""""1 ( 50 )%||
- ||&%'--'============\`----------,----------------`/============'--'%&||
- ||%&JGS&%&%&%&%&&%&%&) F I F T Y D O L L A R S (%&%&%&%&%&%&&%&%&%&||
- '"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""`)";
- cout << "masz za malo zebow i teraz musisz wydac pieniadze zeby je kupic" << endl;
- }
- int main() {
- cout << R"( .
- .
- /^\ .
- /\ "V"
- /__\ I O o
- //..\\ I .
- \].`[/ I
- /l\/j\ (] . O
- /. ~~ ,\/I .
- \\L__j^\/I o
- \/--v} I o .
- | | I _________
- | | I c(` ')o
- | l I \. ,/
- _/j L l\_! _//^---^\\_ )" << endl;
- int zeby, limit, reszta7, reszta13;
- cout << "Podaj ile masz zebow..." << endl;
- cin >> limit;
- cout << "Podaj ile wrzuciles zebow" << endl;
- cin >> zeby;
- cout << "Dobrze, zaczynam oblicznia" << endl;
- // Providing a seed value
- srand((unsigned)time(NULL));
- for (int i = 0; i < 5; i++) {
- int random2 = (rand() % 100000001);
- // Print the random number
- cout << random2 << endl;
- sleep_for(10ns);
- sleep_until(system_clock::now() + 1s);
- }
- if (zeby > limit) {
- malo();
- sleep_for(10ns);
- sleep_until(system_clock::now() + 10s);
- return 0;
- }
- reszta7 = zeby % 7;
- reszta13 = zeby % 13;
- if (reszta7 == 0 && reszta13 == 0) {
- siedemitrzy();
- sleep_for(10ns);
- sleep_until(system_clock::now() + 10s);
- return 0;
- }
- if (reszta13 == 0) {
- trzy();
- sleep_for(10ns);
- sleep_until(system_clock::now() + 10s);
- return 0;
- }
- if (reszta7 == 0) {
- siedem();
- }
- if (reszta7 != 0 && reszta13 != 0) {
- nie();
- }
- sleep_for(10ns);
- sleep_until(system_clock::now() + 10s);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement