SWERC 2021-2022 - 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
1662 SWERC 2021-2022 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) FINISHED False 18000 81024899 April 24, 2022, 11:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3083 ) H Boundary PROGRAMMING math

B'Bethany would like to tile her bathroom. The bathroom has width w centimeters and length l centimeters. If Bethany simply used the basic tiles of size 1 x 1 centimeters, she would use w cdot l of them. However, she has something different in mind. For which values of a can Bethany tile the bathroom floor as described? Note that a can also be 1 . Each test contains multiple test cases. The first line contains an integer t ( 1 <= t <= 100 ) -- the number of test cases. The descriptions of the t test cases follow. Each test case consist of a single line, which contains two integers w , l ( 3 <= q w, l <= q 10^{9} ) -- the dimensions of the bathroom. For each test case, print an integer k ( 0 <= k ) -- the number of valid values of a for the given test case -- followed by k integers a_1, a_2, ... , a_k ( 1 <= a_i ) -- the valid values of a . The values a_1, a_2, ... , a_k have to be sorted from smallest to largest. It is guaranteed that under the problem constraints, the output contains at most 200 ,000 integers. In the first test case, the bathroom is 3 centimeters wide and 5 centimeters long. There are three values of a such that Bethany can tile the floor as described in the statement, namely a=1 , a=2 and a=3 . The three tilings are represented in the following pictures. '...

Tutorials

102042

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
154844556 Imdie Laurids jucason_xu H April 24, 2022, 11:39 a.m. OK GNU C++14 TESTS 7 0 819200
154856422 Albertzz888 H April 24, 2022, 1:28 p.m. OK GNU C++14 TESTS 7 0 1843200
154845692 HwSh H April 24, 2022, 11:49 a.m. OK GNU C++14 TESTS 7 15 102400
154867622 tk_sky YEWPO AntiOxygen H April 24, 2022, 3:26 p.m. OK GNU C++14 TESTS 7 15 204800
154857855 MinhNguyen546 codingismagic201 P_Thi H April 24, 2022, 1:42 p.m. OK GNU C++14 TESTS 7 15 204800
154852560 Ouni_Poppy H April 24, 2022, 12:51 p.m. OK GNU C++14 TESTS 7 15 204800
154849904 remmymilkyway dannyneptune H April 24, 2022, 12:25 p.m. OK GNU C++14 TESTS 7 15 204800
154848726 HansHo logh1 H April 24, 2022, 12:14 p.m. OK GNU C++14 TESTS 7 15 204800
154846236 whhsteven Light-Knight Gice H April 24, 2022, 11:53 a.m. OK GNU C++14 TESTS 7 15 204800
154844878 Max_Calincu H April 24, 2022, 11:42 a.m. OK GNU C++14 TESTS 7 15 204800
154846986 cocodev0113 H April 24, 2022, 11:59 a.m. OK GNU C++17 TESTS 7 0 204800
154864359 Parliament H April 24, 2022, 2:50 p.m. OK GNU C++17 TESTS 7 15 0
154848445 Molly_Love_MAOoo MAOoo_Love_Molly H April 24, 2022, 12:12 p.m. OK GNU C++17 TESTS 7 15 0
154847345 19acm Xingcy dargoncat H April 24, 2022, 12:02 p.m. OK GNU C++17 TESTS 7 15 0
154847128 euoao pigstar yiyezhiqiu0305 H April 24, 2022, noon OK GNU C++17 TESTS 7 15 0
154843388 BilyHurington gzchenben zhouziheng H April 24, 2022, 11:30 a.m. OK GNU C++17 TESTS 7 15 0
154842370 Golovanov399 amethyst0 AndreySergunin H April 24, 2022, 11:22 a.m. OK GNU C++17 TESTS 7 15 0
154844245 mango_lassi please_delete_account YaoBIG H April 24, 2022, 11:37 a.m. OK GNU C++17 TESTS 7 15 102400
154843985 1BeeNY1 H April 24, 2022, 11:35 a.m. OK GNU C++17 TESTS 7 15 102400
154905592 yet_to_be_red H April 25, 2022, 5:18 a.m. OK GNU C++17 TESTS 7 15 204800
154842535 Gary2005 tzxydby platelet H April 24, 2022, 11:24 a.m. OK GNU C++17 (64) TESTS 7 0 102400
154842286 t17 jamil314 border H April 24, 2022, 11:22 a.m. OK GNU C++17 (64) TESTS 7 0 102400
154855417 a757403 H April 24, 2022, 1:19 p.m. OK GNU C++17 (64) TESTS 7 15 0
154848815 gs18115 Retro3014 Gom H April 24, 2022, 12:15 p.m. OK GNU C++17 (64) TESTS 7 15 0
154845408 used-fft H April 24, 2022, 11:46 a.m. OK GNU C++17 (64) TESTS 7 15 0
154845295 Enldgo H April 24, 2022, 11:45 a.m. OK GNU C++17 (64) TESTS 7 15 0
154842663 zhangguangxuan99 nvmdava Maripium H April 24, 2022, 11:25 a.m. OK GNU C++17 (64) TESTS 7 15 0
154842563 Sert H April 24, 2022, 11:24 a.m. OK GNU C++17 (64) TESTS 7 15 0
154842223 changruinian2020 feecIe6418 gyh20 H April 24, 2022, 11:21 a.m. OK GNU C++17 (64) TESTS 7 15 0
154841836 Kotoblepass s20b1_chernikov average_gleb_enjoyer H April 24, 2022, 11:18 a.m. OK GNU C++17 (64) TESTS 7 15 0
154844706 Lyamzin_alexandr H April 24, 2022, 11:41 a.m. OK GNU C++20 (64) TESTS 7 0 0
154844440 tolbi KazmetreD Koful123 H April 24, 2022, 11:38 a.m. OK GNU C++20 (64) TESTS 7 0 0
154843327 sare pooya-shams radal H April 24, 2022, 11:30 a.m. OK GNU C++20 (64) TESTS 7 0 0
154842340 jiangly H April 24, 2022, 11:22 a.m. OK GNU C++20 (64) TESTS 7 0 0
154879379 KnahG H April 24, 2022, 5:49 p.m. OK GNU C++20 (64) TESTS 7 0 102400
154843450 juan.py FedeNQ lsantire H April 24, 2022, 11:31 a.m. OK GNU C++20 (64) TESTS 7 0 204800
154849190 MingQi H April 24, 2022, 12:19 p.m. OK GNU C++20 (64) TESTS 7 0 819200
154886101 lovedeep0022 H April 24, 2022, 7:44 p.m. OK GNU C++20 (64) TESTS 7 15 0
154883167 A_G H April 24, 2022, 6:50 p.m. OK GNU C++20 (64) TESTS 7 15 0
154867469 beerbelly Akpr senR H April 24, 2022, 3:24 p.m. OK GNU C++20 (64) TESTS 7 15 0
154899567 ZENGJIE H April 25, 2022, 3:07 a.m. OK Go TESTS 7 31 307200
154848453 rajkon CaptainAmazing H April 24, 2022, 12:12 p.m. OK Java 11 TESTS 7 249 0
154851925 Wuya H April 24, 2022, 12:44 p.m. OK Java 11 TESTS 7 358 0
154853234 Sumant_xd ninjamayank H April 24, 2022, 12:57 p.m. OK Java 8 TESTS 7 155 0
154862667 _thewiper_ ND_ tushar19280 H April 24, 2022, 2:31 p.m. OK Java 8 TESTS 7 1154 0
154842895 arvindf232 happypotato1207 nicholask H April 24, 2022, 11:26 a.m. OK Kotlin 1.4 TESTS 7 155 1331200
154856077 scnu_sss H April 24, 2022, 1:25 p.m. OK MS C++ 2017 TESTS 7 46 409600
154846830 CrashMaster H April 24, 2022, 11:58 a.m. OK MS C++ 2017 TESTS 7 93 102400
154864985 XYShaoKang H April 24, 2022, 2:56 p.m. OK Node.js TESTS 7 124 3788800
154847277 RUSH_D_CAT limbo.null NecroSean38 H April 24, 2022, 12:02 p.m. OK PyPy 3 TESTS 7 249 4403200
154860442 deskata1997 H April 24, 2022, 2:07 p.m. OK PyPy 3-64 TESTS 7 77 2355200
154860358 deskata1997 H April 24, 2022, 2:06 p.m. OK PyPy 3-64 TESTS 7 77 2457600
154845407 dyppp H April 24, 2022, 11:46 a.m. OK PyPy 3-64 TESTS 7 108 4915200
154889190 Saptak3315 H April 24, 2022, 8:41 p.m. OK PyPy 3-64 TESTS 7 109 7987200
154882431 matteodellamico H April 24, 2022, 6:37 p.m. OK PyPy 3-64 TESTS 7 124 3174400
154851092 huangxw H April 24, 2022, 12:36 p.m. OK PyPy 3-64 TESTS 7 124 9830400
154843865 lucifer1004 Milesian liouzhou_101 H April 24, 2022, 11:34 a.m. OK PyPy 3-64 TESTS 7 140 4710400
154848365 NKUCristiano openmi BaboerBen H April 24, 2022, 12:11 p.m. OK PyPy 3-64 TESTS 7 155 4505600
154853484 Narzullayev.S Accepted_TL Mansurbek H April 24, 2022, 12:59 p.m. OK PyPy 3-64 TESTS 7 155 7884800
154848163 N00BGH0ST H April 24, 2022, 12:09 p.m. OK PyPy 3-64 TESTS 7 217 3584000
154881202 kamaltejguthikonda H April 24, 2022, 6:17 p.m. OK Python 3 TESTS 7 311 0
154850941 Owi H April 24, 2022, 12:35 p.m. OK Python 3 TESTS 7 1887 307200
154854078 NaZaR.IO MDSPro H April 24, 2022, 1:05 p.m. OK Python 3 TESTS 7 1918 0

remove filters

Back to search problems