Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/12/14 in all areas

  1. 1 point
  2. ai pronuntat cuvantul "bere" .... asteapta-te sa vina cativa macar stiu ca the.time(zis si nemessis 2) o sa vina
    1 point
  3. imi pare rau,dar torrentleech nu e gratis
    -1 points
  4. int Numarul_Maxim_De_Numere_Consecutive(int v[], int n) { //Sortam vectorul crescator bool verificat; do { verificat = true; for (int i = 0; i < n - 1; i++) if (v[i] > v[i + 1]) { int aux = v[i]; v[i] = v[i + 1]; v[i + 1] = aux; verificat = false; } } while (!verificat); //Cautam cel mai mare sir consecutiv int max = 1, k = 1; for (int i = 0; i < n - 1; i++) if (v[i] + 1 == v[i + 1]) k++; else { if (max < k) max = k; k = 1; } if (max < k) max = k; return max; } Nu e cea mai optim? variant? dar m?car este una func?ional? . Baft?.
    -1 points
  5. #include <iostream> using namespace std; int main() { unsigned n, nr=1, rez=0; int a[50]; cin>>n; //nr de numere cin>>a[0]; for (unsigned i=1;i<n;i++) { cin>>a[i]; if (a[i]==a[i-1]+1) nr++; else nr=0; if (nr>rez) rez=nr; } cout << rez; return 0; }
    -1 points
  6. saw.zip - Speedy Share - upload your files here Scuze, am fost prins zilele astea cu ceva treburi, nu am putut s? fac ?i un video. Sper c? îl voi face ?i zilele astea. ps. Challenge-ul a fost f?cut împreun? cu @danyweb09. Dump: -- phpMyAdmin SQL Dump -- version 2.11.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 12, 2014 at 07:56 AM -- Server version: 5.1.57 -- PHP Version: 5.2.17 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `a9212397_saw` -- -- -------------------------------------------------------- -- -- Table structure for table `player` -- CREATE TABLE `player` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nume` varchar(40) NOT NULL, `baned` int(11) NOT NULL, `ip` varchar(60) NOT NULL, `time` int(11) NOT NULL, `stage` int(11) NOT NULL, `stage_vizited1` int(11) NOT NULL, `stage_vizited2` int(11) NOT NULL, `stage_vizited3` int(11) NOT NULL, `try` int(11) NOT NULL, `try2` int(11) NOT NULL, `stage_vizited4` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `player` --
    -1 points
×
×
  • Create New...