Cod sursa(job #2229215)

Utilizator FunnyStockyMihnea Andreescu FunnyStocky Data 6 august 2018 12:08:05
Problema Multiplu Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.87 kb
#include <bits/stdc++.h>
#include <windows.h>


using namespace std;


int main() {
    int id=0;
    while(1) {
        int a=rand()%1000+500;
        int b=rand()%1000+500;
        int cnt=0;
        for(int i=1;i<=25;i++) {
            int x=rand()%4;
            if(x==0) {
                if(cnt%2==0) {
                    cout<<"Muie PSD\n";
                }
                else {
                    cout<<"Sugi Pula Dragnea\n";
                }
                cnt++;
            }
            else {
                cout<<"\n";
            }
        }
        if(id%5==0) system("color A3");
        if(id%5==1) system("color B5");
        if(id%5==2) system("color 7C");
        if(id%5==3) system("color DE");
        if(id%5==4) system("color F1");
        id++;
        Beep(a,b);
        system("cls");
    }
    return 0;
}
/**

**/