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 1378. Artificial Intelligence

Some questions
Posted by [AESC USU] Samun_Victor 15 May 2006 21:40
Q1. A square can be rotated to some angle (for example, 30 degrees)?

Q2. If answer to Q1 NO then:
   what wrong in my program:
-----------------------------------------------------------
program Task;

{$APPTYPE CONSOLE}

{ Task #1378 }

var Matrix: array [1..1000,1..1000] of boolean;
    W, H:   integer;
    i, j:   integer;
    maxX,
    minX,
    maxY,
    minY:   integer;
    S, p:   longint;
    strin:  string;

begin
     { Some code :) } <-- it was deleted by me :)
end.

Edited by author 15.05.2006 21:40

Edited by author 17.05.2006 20:12
Some questions
Posted by [AESC USU] Samun_Victor 15 May 2006 21:41
(I have WA7 with my code)
Re: Some questions
Posted by Samsonov Alex [USU] 16 May 2006 17:18
Of course, it can be rotated.
Re: Some questions
Posted by [AESC USU] Samun_Victor 16 May 2006 17:26
Samsonov Alex [USU] wrote 16 May 2006 17:18
Of course, it can be rotated.
Test:
9 9
000100000
001111000
001111110
011111111
111111111
111111110
011111100
000111100
000001000
Answer: square
It's right?

Edited by author 17.05.2006 20:14
Re: Some questions
Posted by Burunduk1 16 May 2006 20:18
Yes.
(But in tests there are not so small pictures)

Edited by author 16.05.2006 20:18
I got ACCEPTED
Posted by [AESC USU] Samun_Victor 17 May 2006 20:11
Big thanks to all of you (Samsonov Alex [USU], Burunduk1), i got AC.
I'll delete my code in first message.

Edited by author 17.05.2006 20:13