Saratov State University :: Online Contester


::Go
- home
- news
- register
- update personal info
- problemset archive
- submit
- status online
- standing
- contests
- virtual contests
- forum
- statistic
- FAQ
- links
- projects

::Poll
Are you registered on Codeforces?
Yes
No
What is it???

[results]

::webboard

Re: WHY WRONG ANSWER ON TEST 2!!!!!!!!!!!!!
Author: Ali
ID: 007733
Problem: -
Contest: -
Date: 2014-07-29 21:07:43

5
2 3 1 2 3

khat-e 40 p1 ro ezafe nakardid.
in chand khat ro be barnaamatoon ezafe mikardid, testesh mikardid.
hamishe sa'y konid test konid.

srand(time(0));
n = rand()%10+1;
for (int i=0 ; i<n ; i++)
a[i] = rand()%10;
int s2 = 0;
for (int i=0 ; i<n ; i++)
for (int j=i+1 ; j<n ; j++)
if (a[i] > a[j]) s2++;
cerr << s2 << endl;

see sub-tree reply to that message


::Login
Forgot password?

::News
22.10.12 - The problems from the Southern Subregional Programming Contest 2012 added to the problemset archive (542 - 553).
22.10.12 - After the start of the contest the statements in PDF will be available by the link.
23.10.11 - The problems from the Southern Subregional Programming Contest 2011 added to the problemset archive (530 - 541).

::Counter

Server time: 2017-11-24 13:48:06Online Contester Team © 2002 - 2016. All rights reserved.