Codeforces Round 261 (Div. 2)

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
459 Codeforces Round 261 (Div. 2) FINISHED False 7200 323706599 Aug. 15, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6191 ) C Pashmak and Buses PROGRAMMING combinatorics constructive algorithms math 1900

B'Recently Pashmak has been employed in a transportation company. The company has k buses and has a contract with a school which has n students. The school planned to take the students to d different places for d days (each day in one place). Each day the company provides all the buses for the trip. Pashmak has to arrange the students in the buses. He wants to arrange the students in a way that no two students become close friends. In his ridiculous idea, two students will become close friends if and only if they are in the same buses for all d days. Please help Pashmak with his weird idea. Assume that each bus has an unlimited capacity. The first line of input contains three space-separated integers n, xe2 x80 x89k, xe2 x80 x89d (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89d xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000; 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). If there is no valid arrangement just print -1. Otherwise print d lines, in each of them print n integers. The j-th integer of the i-th line shows which bus the j-th student has to take on the i-th day. You can assume that the buses are numbered from 1 to k. Note that two students become close friends only if they share a bus each day. But the bus they share can differ from day to day.'...

Tutorials

Codeforces Round #261 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
51170222 aditya_sheth C March 11, 2019, 4:02 p.m. OK Clang++17 Diagnostics TESTS 41 358 0 1900
41674434 Ace_02 C Aug. 17, 2018, 7:14 a.m. OK GNU C++ TESTS 41 124 4096000 1900
37213703 vjudge4 C April 11, 2018, 10:20 a.m. OK GNU C++ TESTS 41 140 8806400 1900
34232364 EfrenGonzalez C Jan. 16, 2018, 8:31 p.m. OK GNU C++ TESTS 41 140 10342400 1900
37132250 ryuzmukhametov C April 9, 2018, 9:59 p.m. OK GNU C++ TESTS 41 155 7680000 1900
37213843 vjudge4 C April 11, 2018, 10:25 a.m. OK GNU C++ TESTS 41 155 8806400 1900
40352355 vjudge3 C July 14, 2018, 5:47 p.m. OK GNU C++ TESTS 41 156 3891200 1900
41312089 vjudge3 C Aug. 7, 2018, 4:49 p.m. OK GNU C++ TESTS 41 156 4096000 1900
40873970 vjudge5 C July 28, 2018, 7:37 a.m. OK GNU C++ TESTS 41 156 4096000 1900
40529943 vjudge5 C July 19, 2018, 1:58 a.m. OK GNU C++ TESTS 41 156 4096000 1900
38597627 vjudge2 C May 24, 2018, 10:47 p.m. OK GNU C++ TESTS 41 156 4096000 1900
40988112 ReaLNero1 C July 30, 2018, 9:45 p.m. OK GNU C++11 TESTS 41 46 0 1900
63990768 AyoAyowei C Nov. 1, 2019, 1:04 p.m. OK GNU C++11 TESTS 41 46 4096000 1900
46690388 dhruv1998 C Dec. 6, 2018, 4:12 p.m. OK GNU C++11 TESTS 41 46 4096000 1900
52649670 racoon C April 12, 2019, 4:01 p.m. OK GNU C++11 TESTS 41 109 0 1900
50895464 vjudge1 C March 6, 2019, 2:52 p.m. OK GNU C++11 TESTS 41 109 4096000 1900
57819077 py_ultron C July 26, 2019, 9:38 p.m. OK GNU C++11 TESTS 41 124 0 1900
56978374 ls_eiau_01 C July 13, 2019, 1:01 p.m. OK GNU C++11 TESTS 41 124 3993600 1900
69207492 vjudge4 C Jan. 20, 2020, 6:30 p.m. OK GNU C++11 TESTS 41 124 4096000 1900
47455291 E-lie C Dec. 24, 2018, 12:12 p.m. OK GNU C++11 TESTS 41 124 4096000 1900
44837845 bojverdict1 C Oct. 25, 2018, 11:41 a.m. OK GNU C++11 TESTS 41 124 4096000 1900
42456111 Mohit_001 C Sept. 4, 2018, 11:34 a.m. OK GNU C++14 TESTS 41 62 0 1900
67152488 emperor_gentoo C Dec. 18, 2019, 11:19 a.m. OK GNU C++14 TESTS 41 93 0 1900
66617227 practiceC C Dec. 11, 2019, 4:59 a.m. OK GNU C++14 TESTS 41 93 0 1900
52582114 Lone__wolf C April 10, 2019, 7:52 p.m. OK GNU C++14 TESTS 41 93 0 1900
52071529 hv_15 C March 31, 2019, 8:03 a.m. OK GNU C++14 TESTS 41 93 0 1900
51465038 odaskfda C March 19, 2019, 12:03 a.m. OK GNU C++14 TESTS 41 93 0 1900
49918914 Deadshot007 C Feb. 14, 2019, 5:44 p.m. OK GNU C++14 TESTS 41 93 0 1900
48451790 bonzai C Jan. 16, 2019, 10:52 a.m. OK GNU C++14 TESTS 41 93 0 1900
48019875 Tema_ C Jan. 6, 2019, 4:35 a.m. OK GNU C++14 TESTS 41 93 0 1900
44838689 bojverdict2 C Oct. 25, 2018, 11:59 a.m. OK GNU C++14 TESTS 41 93 0 1900
67207427 mshiladityam C Dec. 19, 2019, 12:55 p.m. OK GNU C++17 TESTS 41 62 0 1900
58857538 andrew C Aug. 15, 2019, 10:03 a.m. OK GNU C++17 TESTS 41 77 21606400 1900
68749508 kiimak C Jan. 14, 2020, 6:09 a.m. OK GNU C++17 TESTS 41 93 0 1900
64303084 nvmdava C Nov. 5, 2019, 10:42 a.m. OK GNU C++17 TESTS 41 93 0 1900
62251888 spiderwick_99 C Oct. 10, 2019, 9:32 a.m. OK GNU C++17 TESTS 41 93 0 1900
60352823 Mohd. C Sept. 10, 2019, 2:57 p.m. OK GNU C++17 TESTS 41 93 0 1900
60304119 sbhmsh C Sept. 9, 2019, 1:14 p.m. OK GNU C++17 TESTS 41 93 0 1900
54529547 wery0 C May 23, 2019, 4:20 p.m. OK GNU C++17 TESTS 41 93 0 1900
45986308 erove C Nov. 20, 2018, 6:50 a.m. OK GNU C++17 TESTS 41 93 307200 1900
53931494 kenechi C May 9, 2019, 6:04 p.m. OK GNU C++17 TESTS 41 93 3993600 1900
68376180 adarsh000321 C Jan. 7, 2020, 8:02 p.m. OK Java 8 TESTS 41 171 8396800 1900
48945551 deepak4669 C Jan. 25, 2019, 6:53 p.m. OK Java 8 TESTS 41 187 0 1900
64574393 johnny16 C Nov. 9, 2019, 10:19 a.m. OK Java 8 TESTS 41 187 8192000 1900
60902271 ISSAM_LAKOUAM C Sept. 19, 2019, 10:59 p.m. OK Java 8 TESTS 41 202 0 1900
47787680 Ahmed_Diab C Dec. 31, 2018, 11:38 a.m. OK Java 8 TESTS 41 202 0 1900
46011688 mantis_0604 C Nov. 20, 2018, 9 p.m. OK Java 8 TESTS 41 202 0 1900
64655483 insane_28 C Nov. 10, 2019, 7:08 p.m. OK Java 8 TESTS 41 202 3584000 1900
53193855 jenish9599 C April 23, 2019, 2:12 p.m. OK Java 8 TESTS 41 202 4915200 1900
51209201 Verdusk C March 12, 2019, 6:54 a.m. OK Java 8 TESTS 41 202 8806400 1900
57701811 _Sergey_ C July 24, 2019, 6:09 p.m. OK Java 8 TESTS 41 217 0 1900
51970542 hongquanntct C March 29, 2019, 12:14 p.m. OK Mono C# TESTS 41 186 17305600 1900
51970518 hongquanntct C March 29, 2019, 12:13 p.m. OK Mono C# TESTS 41 187 17305600 1900
40233298 Mosyagin C July 12, 2018, 1:17 p.m. OK Mono C# TESTS 41 467 7168000 1900
69550552 vjudge1 C Jan. 26, 2020, 6:13 a.m. OK MS C++ TESTS 41 156 4096000 1900
38678334 vjudge1 C May 27, 2018, 7:32 p.m. OK MS C++ TESTS 41 156 4198400 1900
37681010 vjudge2 C April 28, 2018, 9:16 a.m. OK MS C++ TESTS 41 171 7987200 1900
41514130 vjudge5 C Aug. 12, 2018, 4:45 a.m. OK MS C++ TESTS 41 186 4096000 1900
37353693 vjudge4 C April 15, 2018, 12:58 p.m. OK MS C++ TESTS 41 186 7577600 1900
56640040 vjudge2 C July 7, 2019, 12:24 a.m. OK MS C++ TESTS 41 187 77004800 1900
38795460 vjudge2 C May 31, 2018, 8:55 a.m. OK MS C++ TESTS 41 233 7577600 1900
59806267 vjudge1 C Aug. 31, 2019, 12:01 p.m. OK MS C++ TESTS 41 264 4096000 1900
37743653 luping C April 30, 2018, 8:28 a.m. OK MS C++ TESTS 41 264 7884800 1900
51818954 vjudge2 C March 25, 2019, 11:02 a.m. OK MS C++ TESTS 41 265 4096000 1900
51272589 Husne_Matar C March 13, 2019, 6:51 p.m. OK MS C++ 2017 TESTS 41 186 8396800 1900
58095492 yorky C July 31, 2019, 7:34 p.m. OK MS C++ 2017 TESTS 41 623 8601600 1900
37321243 I_love_Harpae C April 14, 2018, 9:48 a.m. OK PyPy 2 TESTS 41 186 39014400 1900
37321649 barakraganosungam C April 14, 2018, 9:57 a.m. OK PyPy 2 TESTS 41 186 39014400 1900
42466265 nethish C Sept. 4, 2018, 4:01 p.m. OK PyPy 3 TESTS 41 389 7577600 1900
43689503 ItsLastDay C Oct. 2, 2018, 1:45 p.m. OK PyPy 3 TESTS 41 467 23347200 1900
64585902 chaudhary_19 C Nov. 9, 2019, 1:20 p.m. OK PyPy 3 TESTS 41 530 9728000 1900
60950937 swapnil2597 C Sept. 20, 2019, 9:43 p.m. OK PyPy 3 TESTS 41 576 52838400 1900
68403533 Firepaw C Jan. 8, 2020, 2:02 p.m. OK PyPy 3 TESTS 41 826 31436800 1900
52533088 soto_nlp C April 9, 2019, 2:17 p.m. OK PyPy 3 TESTS 41 842 9932800 1900
67136460 ashok123 C Dec. 18, 2019, 4:33 a.m. OK Python 2 TESTS 41 592 204800 1900
34959533 vjudge4 C Feb. 6, 2018, 2:50 a.m. OK Python 2 TESTS 41 748 9728000 1900
56147835 -g0d- C June 27, 2019, 7:05 a.m. OK Python 2 TESTS 41 810 5324800 1900
61865171 andiso C Oct. 4, 2019, 4:22 p.m. OK Python 2 TESTS 41 842 5324800 1900
67418355 pac-man21 C Dec. 22, 2019, 10:44 a.m. OK Python 3 TESTS 41 140 9011200 1900
67417975 admiral_general_aladeen C Dec. 22, 2019, 10:36 a.m. OK Python 3 TESTS 41 155 9011200 1900
53279799 jaaguptamme C April 25, 2019, 11:27 a.m. OK Python 3 TESTS 41 483 409600 1900
37321905 barakraganosungam C April 14, 2018, 10:02 a.m. OK Python 3 TESTS 41 498 7680000 1900
37321722 barakraganosungam C April 14, 2018, 9:58 a.m. OK Python 3 TESTS 41 499 7680000 1900
35873600 ______u______ C March 3, 2018, 7:34 a.m. OK Python 3 TESTS 41 514 6348800 1900
35873350 ______n______ C March 3, 2018, 7:29 a.m. OK Python 3 TESTS 41 514 6348800 1900
35872765 _____k_____ C March 3, 2018, 7:16 a.m. OK Python 3 TESTS 41 514 6348800 1900
35872723 _____i_____ C March 3, 2018, 7:16 a.m. OK Python 3 TESTS 41 514 6348800 1900
35863707 ______k______ C March 2, 2018, 10:52 p.m. OK Python 3 TESTS 41 514 6348800 1900

remove filters

Back to search problems