SWERC 2022-2023 - Online Mirror (Unrated, ICPC Rules, Teams Preferred)

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
1776 SWERC 2022-2023 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) FINISHED False 18000 99600923 Feb. 19, 2023, 11:05 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 7950 ) A Walking Boy PROGRAMMING greedy

One of the SWERC judges has a dog named Boy. Besides being a good competitive programmer, Boy loves fresh air, so she wants to be walked at least twice a day. Walking Boy requires (120) consecutive minutes. Two walks cannot overlap, but one can start as soon as the previous one has finished. Boy before and after getting ACCEPTED on this problem. Today, the judge sent (n) messages to the SWERC Discord server. The (i)-th message was sent (a_i) minutes after midnight. You know that, when walking Boy, the judge does not send any messages, but he can send a message right before or right after a walk. Is it possible that the judge walked Boy at least twice today? Note that a day has (1440) minutes, and a walk is considered to happen today if it starts at a minute (s \ge 0) and ends right before a minute (e \le 1440). In that case, it must hold that (e - s = 120) and, for every (i = 1, \, 2 \, \dots, \, n), either (a_i \le s) or (a_i \ge e). Each test contains multiple test cases. The first line contains an integer (t) ((1 \le t \le 100)) — the number of test cases. The descriptions of the (t) test cases follow. The first line of each test case contains an integer (n) ((1 \le n \le 100)) — the number of messages sent by the judge. The second line of each test case contains (n) integers (a_1, \, a_2, \, \dots, \, a_n) ((0 \le a_1 < a_2 < \cdots < a_n < 1440)) — the times at which the messages have been sent (in minutes elapsed from midnight). For each test case, output one line containing (YES) if it is possible that Boy has been walked at least twice, and (NO) otherwise. In the first test case , the judge has sent a message at each time multiple of (100) (excluding (0)). It is impossible that he has walked Boy even once. In the second test case , the times are the same as above, but (500) and (1000) are missing. The judge could have walked Boy, fo

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
194220349 adsadsdsad DongFang A Feb. 19, 2023, 11:49 a.m. OK C# 10 TESTS 2 31 102400
194218459 Antroz A Feb. 19, 2023, 11:38 a.m. OK C# 10 TESTS 2 31 512000
194219014 tabibi A Feb. 19, 2023, 11:41 a.m. OK C# 10 TESTS 2 46 307200
194217277 VectorASD gujik Liswiera A Feb. 19, 2023, 11:31 a.m. OK C# 10 TESTS 2 46 512000
194266819 harshgupta7093 A Feb. 19, 2023, 5:37 p.m. OK Clang++20 Diagnostics TESTS 2 46 8396800
194264352 Awesome3.14 A Feb. 19, 2023, 5:13 p.m. OK D TESTS 2 15 204800
194213558 ruban A Feb. 19, 2023, 11:11 a.m. OK FPC TESTS 2 0 8089600
194292240 NenadDapic A Feb. 19, 2023, 10:52 p.m. OK FPC TESTS 2 15 0
194309860 wish_rajput A Feb. 20, 2023, 5:13 a.m. OK GNU C++14 TESTS 2 0 0
194308580 aditya_utility A Feb. 20, 2023, 4:45 a.m. OK GNU C++14 TESTS 2 0 0
194308390 aditya_utility A Feb. 20, 2023, 4:41 a.m. OK GNU C++14 TESTS 2 0 0
194303561 Fire_Weed_yue A Feb. 20, 2023, 2:32 a.m. OK GNU C++14 TESTS 2 0 0
194303214 KING_OF_TURTLE A Feb. 20, 2023, 2:24 a.m. OK GNU C++14 TESTS 2 0 0
194290404 SneiderQuintero A Feb. 19, 2023, 10:09 p.m. OK GNU C++14 TESTS 2 0 0
194273760 arya.n.raj A Feb. 19, 2023, 6:46 p.m. OK GNU C++14 TESTS 2 0 0
194270817 Viswesh_nani A Feb. 19, 2023, 6:17 p.m. OK GNU C++14 TESTS 2 0 0
194264305 33_arsenic_75 A Feb. 19, 2023, 5:12 p.m. OK GNU C++14 TESTS 2 0 0
194253469 Hope_S A Feb. 19, 2023, 4:01 p.m. OK GNU C++14 TESTS 2 0 0

remove filters

Back to search problems