AVR32

Auth Gábor auth.gabor at enaplo.hu
Sat Mar 11 16:14:09 CET 2006


Halihó!

hoyuka ezt írta:
> - tombkezeles

#include <stdio.h>
int main()
{
  int tomb[500000];
  for (int count2=0;count2<1000;count2++)
  {
    for (int count=0;count<500000;count++)
    {
      tomb[count]=count;
    }
    printf("%d\n",count2);
  }

  return 0;
}

> time ./proba
real    0m4.062s
user    0m3.516s
sys     0m0.060s

public class Proba
{
  public static void main(String[] args)
  {
    int tomb[]=new int[500000];
    for (int count2=0;count2<1000;count2++)
    {
      for (int count=0;count<500000;count++)
      {
        tomb[count]=count;
      }
      System.out.println(count2);
    }
  }
}

> time java Proba
real    0m2.516s
user    0m2.012s
sys     0m0.068s

> Esetleg elso lepeskent csinalhatnank vmi egyszeru Huffman tomoritot,
> raengednenk vmi nagy file-ra.

  Ez a vesszőparipád? :)

> Na ha lesz idom, akor nekallok, most mar nekem is bassza a csoromet
> ez a tema.

  Hajrá.
-- 
http://www.enaplo.hu - Iskolai Információs Rendszer
Auth Gábor -=- FreeBSD 5.4 -=- http://bsd.lap.hu
+36-70/9400-341 -=- ICQ: 49179141 -=- Skype: authgabor




More information about the Elektro mailing list