Cod sursa(job #231001)

Utilizator VintyRazvan Vintilescu Vinty Data 14 decembrie 2008 11:14:52
Problema Tablete Scor 0
Compilator cpp Status done
Runda Algoritmiada 2009, Runda 1, Studenti Marime 0.5 kb
#include <iostream.h>
#include <fstream.h>
 fstream f("tablete.in", ios::in)
 fstream g("tablete.out", ios::out)
   void main ()
  {
    int n,k,i,j;
    f>>n;
    f>>k;
    f.get();
  for (i=1;i<=n;i++)
    {
     for (j=1;j<=n;j++)
      {
        a[i][j]<a[i][j+1];
         
     if (j=k && a[i][j] %2==0)
     g<<a[i][j];
     }
  for (i=1;i<=n;i++)
       {
        for (j=1;j<=n;j++)
          g<<a[i][j];
          g<<endl;
       }  
    }
  f.close();
  g.close();
    }