ENG
RUS
Timus 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
Discussion of Problem
1981
. Parallel and Perpendicular
Show all threads
Hide all threads
Show all messages
Hide all messages
a few hints for quick solution
esbybb
1981
. Parallel and Perpendicular
26 Aug 2015 14:37
1
a few hints for quick solution
esbybb
26 Aug 2015 14:37
1) a first number is always >0 except N=5
2) long types of numbers give AC
WA5
Dmitriy99
1981
. Parallel and Perpendicular
20 Aug 2014 06:03
2
WA5
Dmitriy99
28 Jul 2014 19:37
Can you give some tests, please?
Re: WA5
Fetisov Alex [Psych Up club]
20 Aug 2014 06:03
Think about the parallel case for even number of vertices.
I need help= =
vcvycy
1981
. Parallel and Perpendicular
25 Oct 2013 13:15
4
I need help= =
vcvycy
20 Oct 2013 09:52
WA..
who can give some test cases?
#include<stdio.h>
#include<stdlib.h>
int main()
{
long long n,m;
scanf("%I64d",&n);
m=n*(n-3)/2;
if (n % 2==1)
printf("%I64d 0\n",m);
if (n % 2==0)
{
if (n==4)printf("0 2\n");
else
printf("%I64d %I64d\n",m,m);
}
system("pause");
return 0;
}
Edited by author 20.10.2013 09:53
Re: I need help= =
randomru
20 Oct 2013 10:36
n=4
n=5
n=6
Re: I need help= =
Smilodon_am [Obninsk INPE]
22 Oct 2013 14:13
I think that number of perpendicular diagonals for N-polygon is equal to 0 for every odd N. I don't say the same about parallel diagonals in regular N-polygon for odd N.
Edited by author 24.10.2013 19:33
Re: I need help= =
Smilodon_am [Obninsk INPE]
25 Oct 2013 13:15
answers for tests:
n = 4
ans: 0 2
n = 5
ans: 0 0
n = 6
ans: 6 9
n = 7
ans: 14 0
For test #25
randomru
1981
. Parallel and Perpendicular
25 Oct 2013 09:58
1
For test #25
randomru
25 Oct 2013 09:58
Use long long instead int
скиньте решение плиз
kostan3 (kostan3@spaces.ru)
1981
. Parallel and Perpendicular
21 Oct 2013 19:45
3
скиньте решение плиз
kostan3 (kostan3@spaces.ru)
20 Oct 2013 21:25
kostan3@spaces.ru
Re: скиньте решение плиз
RustamRakhimov
21 Oct 2013 19:16
poluchil ?
syuda toje skinyte rusyasoft@mail.ru
Edited by author 21.10.2013 19:17
Edited by author 21.10.2013 19:17
Re: скиньте решение плиз
kostan3 (kostan3@spaces.ru)
21 Oct 2013 19:45
нет
WA test #25
shohruh_genius
1981
. Parallel and Perpendicular
21 Oct 2013 11:35
1
WA test #25
shohruh_genius
21 Oct 2013 11:35
New topic
Style:
flat
|
tree
|
nested
Thread Order:
bubble
|
fixed
© 2000–2024
Timus Online Judge Team
. All rights reserved.