ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1263. Elections

Pages: Previous 1 2
Re: Pascal VS C++
Posted by Alexander Prokazyuk (TKTL) 18 Oct 2006 08:02
Shut up! Pascal Will Newer Die!

Edited by author 18.10.2006 08:05
Re: Pascal vs C/C++ :(
Posted by hx 11 Feb 2009 16:15
In C++ very hard syntax, and Pascal is good language too
Re: Pascal vs C/C++ :(
Currently I'm using C++ for solving problems, but can say: Pascal foreva! C++ has many drawbacks which are worse than just long "begin .. end"
Re: Pascal vs C/C++ :(
Posted by [SPbSU ITMO] WiNGeR 13 Feb 2009 22:34
I solved problems using all languages available on this server and Java seems to be most convenient for me..
Re: +++
Posted by Fyodor Menshikov 13 Feb 2009 23:53
Vladimir Yakovlev (USU) wrote 4 February 2006 14:42
It is possible to recalculate all timelimits for Java. But it is impossible to make all problems solvable in Java.

It's possible. :-)))

http://acm.timus.ru/status.aspx?space=1&num=1220&author=23793
http://acm.timus.ru/status.aspx?space=1&num=1306&author=23793
1275 is coming soon.

Edited by author 13.02.2009 23:53
Re: +++
And why it is problem to solve it in Java? What we need for solution - just one array int[1000]
But I really don't understand why timelimit is so small - memory is not crucial part of this problem at all...
Re: +++
Posted by Fyodor Menshikov 16 Feb 2009 12:16
Vedernikoff Sergey (HSE: EconomicsForever!) wrote 16 February 2009 03:38
memory is not crucial part of this problem at all...

Maybe author wanted to cut off DP way of solving this problem or something like this.
Re: Pascal vs C/C++ :(
Posted by yaho0o0 8 Apr 2009 15:04
#include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
    int br[10024],i,m;
    double n,a;
    float sum;
    cin>>n>>a;
    sum=100/a;
    for(i=1;i<=10024;i++)
    {
        br[i]=0;
    }
    for(i=1;i<=a;i++)
    {
        cin>>m;
        br[m]++;
    }
    for(i=1;i<=n;i++)
    {

         printf("%.2lf",(br[i]*sum));
         cout<<"%"<<endl;
    }
    return 0;
}
Re: Pascal vs C/C++ :(
Posted by fallen 22 May 2009 17:46
Holywar on timus=). Lol.
Re: Pascal vs C/C++ :(
Posted by rkkautsar 13 Oct 2012 15:06
Can anyone translate my solution below into C++? I want to learn programming in C/C++ too :)

type TArray=array of dword;
var arr:TArray;
m,n,c,i:dword;
begin
readln(n,m);
setlength(arr,n+1);
for i:=1 to n do arr[i]:=0;
for i:=1 to m do begin
readln(c);
arr[c]+=1;
end;
for i:=1 to n do begin
writeln((arr[i]*100/m):2:2,'%');
end;
end.
Pages: Previous 1 2