2019-2020 ICPC, Asia Jakarta Regional Contest (Online Mirror, 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
1252 2019-2020 ICPC, Asia Jakarta Regional Contest (Online Mirror, ICPC Rules, Teams Preferred) FINISHED False 18000 159676199 Oct. 27, 2019, 3:30 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5659 ) A Copying Homework PROGRAMMING 1000

B"Danang and Darto are classmates. They are given homework to create a permutation of N integers from 1 to N . Danang has completed the homework and created a permutation A of N integers. Darto wants to copy Danang's homework, but Danang asks Darto to change it up a bit so it does not look obvious that Darto copied. The difference of two permutations of N integers A and B , denoted by diff(A, B) , is the sum of the absolute difference of A_i and B_i for all i . In other words, diff(A, B) = Sigma_{i=1}^N |A_i - B_i| . Darto would like to create a permutation of N integers that maximizes its difference with A . Formally, he wants to find a permutation of N integers B_{max} such that diff(A, B_{max}) ge diff(A, B') for all permutation of N integers B' . Darto needs your help! Since the teacher giving the homework is lenient, any permutation of N integers B is considered different with A if the difference of A and B is at least N . Therefore, you are allowed to return any permutation of N integers B such that diff(A, B) ge N . Of course, you can still return B_{max} if you want, since it can be proven that diff(A, B_{max}) ge N for any permutation A and N > 1 . This also proves that there exists a solution for any permutation of N integers A . If there is more than one valid solution, you can output any of them. Input begins with a line containing an integer: N ( 2 <= N <= 100 ,000 ) representing the size of Danang's permutation. The next line contains N integers: A_i ( 1 <= A_i <= N ) representing Danang's permutation. It is guaranteed that all elements in A are distinct. Output in a line N integers (each separated by a single space) representing the permutation of N integers B such that diff(A, B) ge N$$"...

Tutorials

T

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
64757362 Ghozlan A Nov. 12, 2019, 5:30 p.m. OK Clang++17 Diagnostics TESTS 57 717 409600 1000
64073329 irfanabduhu A Nov. 2, 2019, 8:08 a.m. OK Clang++17 Diagnostics TESTS 57 748 1024000 1000
63701847 da11 A Oct. 29, 2019, 7:35 a.m. OK Clang++17 Diagnostics TESTS 57 795 16076800 1000
64754641 ruban A Nov. 12, 2019, 4:27 p.m. OK Delphi TESTS 57 62 9625600 1000
63652531 tranminhprvt01 A Oct. 28, 2019, 11:49 a.m. OK FPC TESTS 57 311 409600 1000
63520885 duydec1 A Oct. 27, 2019, 3:40 a.m. OK FPC TESTS 57 327 0 1000
65660381 jschr A Nov. 24, 2019, 12:08 p.m. OK GNU C11 TESTS 57 343 0 1000
63615297 voidy A Oct. 27, 2019, 7:10 p.m. OK GNU C11 TESTS 57 343 0 1000
64018544 nNguyeNn A Nov. 1, 2019, 3:31 p.m. OK GNU C11 TESTS 57 343 409600 1000
64853052 hpl A Nov. 13, 2019, 8:41 p.m. OK GNU C11 TESTS 57 358 0 1000
63939491 Bllade A Oct. 31, 2019, 4:59 p.m. OK GNU C11 TESTS 57 358 0 1000
65824088 Euphonium A Nov. 27, 2019, 11:51 a.m. OK GNU C11 TESTS 57 358 0 1000
64584627 ioanD A Nov. 9, 2019, 1:01 p.m. OK GNU C11 TESTS 57 358 0 1000
67730956 satya_chaitanya A Dec. 27, 2019, 3:46 p.m. OK GNU C11 TESTS 57 358 0 1000
64109948 chys25 A Nov. 2, 2019, 6:16 p.m. OK GNU C11 TESTS 57 358 0 1000
64552187 BugLeave A Nov. 9, 2019, 12:35 a.m. OK GNU C11 TESTS 57 358 0 1000
63687384 AC-Evil CYW_lyr guoyifan A Oct. 28, 2019, 11:42 p.m. OK GNU C++11 TESTS 57 31 0 1000
63523267 LJC00118 A Oct. 27, 2019, 4:28 a.m. OK GNU C++11 TESTS 57 31 0 1000
63520491 myx12345 chenkuowen A Oct. 27, 2019, 3:34 a.m. OK GNU C++11 TESTS 57 31 0 1000
69592732 yuzhechuan A Jan. 27, 2020, 1:55 a.m. OK GNU C++11 TESTS 57 31 0 1000
69592721 yuzhechuan A Jan. 27, 2020, 1:54 a.m. OK GNU C++11 TESTS 57 31 0 1000
64800183 lys013 A Nov. 13, 2019, 2:19 p.m. OK GNU C++11 TESTS 57 31 0 1000
64054134 luogu_bot4 A Nov. 2, 2019, 12:03 a.m. OK GNU C++11 TESTS 57 31 409600 1000
66533629 vjudge3 A Dec. 9, 2019, 8:38 a.m. OK GNU C++11 TESTS 57 46 0 1000
66535420 vjudge5 A Dec. 9, 2019, 9:25 a.m. OK GNU C++11 TESTS 57 46 0 1000
66571711 vjudge3 A Dec. 10, 2019, 5:02 a.m. OK GNU C++11 TESTS 57 46 0 1000
64093592 HazemEssawi A Nov. 2, 2019, 1:18 p.m. OK GNU C++14 TESTS 57 46 0 1000
69440552 davidberard A Jan. 23, 2020, 9:16 p.m. OK GNU C++14 TESTS 57 46 0 1000
67604799 abhishekmallik265 A Dec. 25, 2019, 1:12 p.m. OK GNU C++14 TESTS 57 46 0 1000
66220852 BlueDiamond A Dec. 3, 2019, 10:45 a.m. OK GNU C++14 TESTS 57 46 0 1000
65888175 vjudge1 A Nov. 28, 2019, 1:17 a.m. OK GNU C++14 TESTS 57 46 0 1000
64781012 nganhvu A Nov. 13, 2019, 7:07 a.m. OK GNU C++14 TESTS 57 46 0 1000
64184768 LJFan A Nov. 4, 2019, 4:09 a.m. OK GNU C++14 TESTS 57 46 0 1000
64129342 AlexPop28 shantihhillalex AndreiCotor A Nov. 3, 2019, 6:16 a.m. OK GNU C++14 TESTS 57 46 0 1000
64073986 ItsMeMario Mr-Spy Logic_PS A Nov. 2, 2019, 8:17 a.m. OK GNU C++14 TESTS 57 46 0 1000
63963047 codelegend A Nov. 1, 2019, 6:05 a.m. OK GNU C++14 TESTS 57 46 0 1000
66214895 .tx A Dec. 3, 2019, 8:29 a.m. OK GNU C++17 TESTS 57 31 0 1000
64759408 AmanGupta_ A Nov. 12, 2019, 6:23 p.m. OK GNU C++17 TESTS 57 46 0 1000
65134048 vjudge4 A Nov. 16, 2019, 5:16 a.m. OK GNU C++17 TESTS 57 46 0 1000
65721172 rtbmnie A Nov. 25, 2019, 7:10 p.m. OK GNU C++17 TESTS 57 46 0 1000
66139656 juniorcompressor A Dec. 1, 2019, 1:48 p.m. OK GNU C++17 TESTS 57 46 0 1000
66225008 sundesh AniketSangwan jains8844 A Dec. 3, 2019, 12:15 p.m. OK GNU C++17 TESTS 57 46 0 1000
66400816 DATVN A Dec. 6, 2019, 12:14 p.m. OK GNU C++17 TESTS 57 46 0 1000
67567543 thienlongtpct A Dec. 24, 2019, 8:03 p.m. OK GNU C++17 TESTS 57 46 0 1000
69606650 Shahraaz A Jan. 27, 2020, 9:58 a.m. OK GNU C++17 TESTS 57 46 0 1000
64684968 sharrad99 A Nov. 11, 2019, 11:26 a.m. OK GNU C++17 TESTS 57 46 0 1000
64721353 z20124528 A Nov. 12, 2019, 3:45 a.m. OK Go TESTS 57 421 0 1000
63988281 thetest A Nov. 1, 2019, 12:24 p.m. OK Haskell TESTS 57 218 26316800 1000
63988657 thetest A Nov. 1, 2019, 12:30 p.m. OK Haskell TESTS 57 233 13721600 1000
64125199 chew2 A Nov. 3, 2019, 4:18 a.m. OK Haskell TESTS 57 280 36864000 1000
63987927 thetest A Nov. 1, 2019, 12:19 p.m. OK Haskell TESTS 57 373 15872000 1000
63711113 Musin A Oct. 29, 2019, 10:05 a.m. OK Java 11 TESTS 57 218 0 1000
63529654 serafimkoo A Oct. 27, 2019, 6:21 a.m. OK Java 11 TESTS 57 234 0 1000
68059125 zhanyi_xiaolu A Jan. 2, 2020, 1:29 a.m. OK Java 11 TESTS 57 654 0 1000
64046637 begmyratmammedov A Nov. 1, 2019, 7:41 p.m. OK Java 11 TESTS 57 670 0 1000
67655172 Rangerstorm A Dec. 26, 2019, 1:39 p.m. OK Java 11 TESTS 57 670 0 1000
63940116 chistiny A Oct. 31, 2019, 5:13 p.m. OK Java 11 TESTS 57 685 0 1000
63628345 DLU_Sirius A Oct. 28, 2019, 5:13 a.m. OK Java 11 TESTS 57 686 0 1000
64130337 minionsRahat A Nov. 3, 2019, 6:38 a.m. OK Java 11 TESTS 57 702 0 1000
65520911 Krink A Nov. 22, 2019, 8:17 a.m. OK Java 11 TESTS 57 951 0 1000
63696653 i_am_noob1999 A Oct. 29, 2019, 5:43 a.m. OK Java 8 TESTS 57 109 0 1000
63941814 Omar_Othman A Oct. 31, 2019, 5:41 p.m. OK Java 8 TESTS 57 124 0 1000
65326714 NormalGeek A Nov. 19, 2019, 2:15 a.m. OK Java 8 TESTS 57 124 0 1000
63942189 Omar_Othman A Oct. 31, 2019, 5:47 p.m. OK Java 8 TESTS 57 124 0 1000
63940607 Omar_Othman A Oct. 31, 2019, 5:21 p.m. OK Java 8 TESTS 57 124 0 1000
63940391 Omar_Othman A Oct. 31, 2019, 5:18 p.m. OK Java 8 TESTS 57 124 0 1000
64450617 readmanhe A Nov. 7, 2019, 6:56 a.m. OK Java 8 TESTS 57 139 0 1000
63941318 Omar_Othman A Oct. 31, 2019, 5:33 p.m. OK Java 8 TESTS 57 139 0 1000
63941103 Omar_Othman A Oct. 31, 2019, 5:29 p.m. OK Java 8 TESTS 57 139 0 1000
63627703 Warbler A Oct. 28, 2019, 4:51 a.m. OK Java 8 TESTS 57 139 0 1000
63624614 Spheniscine A Oct. 28, 2019, 2:38 a.m. OK Kotlin TESTS 57 155 716800 1000
63770699 mirennn A Oct. 30, 2019, 7:53 a.m. OK Kotlin TESTS 57 546 3379200 1000
64767779 tomomo2b2 A Nov. 12, 2019, 9:45 p.m. OK Mono C# TESTS 57 108 17305600 1000
63532782 heavenhunter A Oct. 27, 2019, 7:12 a.m. OK Mono C# TESTS 57 140 9523200 1000
63787696 TRR A Oct. 30, 2019, 12:46 p.m. OK Mono C# TESTS 57 389 12902400 1000
67270596 Selecta A Dec. 20, 2019, 8:07 a.m. OK Mono C# TESTS 57 389 14950400 1000
64799437 Tan42 A Nov. 13, 2019, 2:04 p.m. OK Mono C# TESTS 57 390 14643200 1000
66227914 GusztavSzmolik A Dec. 3, 2019, 1:19 p.m. OK Mono C# TESTS 57 405 13312000 1000
63825894 jobties A Oct. 30, 2019, 1:23 p.m. OK Mono C# TESTS 57 654 7884800 1000
63994997 nehan A Nov. 1, 2019, 2:20 p.m. OK Mono C# TESTS 57 686 13414400 1000
65847908 vjudge2 A Nov. 27, 2019, 2:39 p.m. OK MS C++ TESTS 57 46 0 1000
66547449 vjudge3 A Dec. 9, 2019, 1:43 p.m. OK MS C++ TESTS 57 46 0 1000
66459996 vjudge1 A Dec. 7, 2019, 2:28 p.m. OK MS C++ TESTS 57 46 409600 1000
63920354 vjudge2 A Oct. 31, 2019, 11:31 a.m. OK MS C++ TESTS 57 46 409600 1000
66451509 vjudge4 A Dec. 7, 2019, 11:39 a.m. OK MS C++ TESTS 57 46 409600 1000
65824747 vjudge2 A Nov. 27, 2019, 12:06 p.m. OK MS C++ TESTS 57 46 4403200 1000
65134383 vjudge3 A Nov. 16, 2019, 5:26 a.m. OK MS C++ TESTS 57 46 7987200 1000
66265126 vjudge4 A Dec. 4, 2019, 10:07 a.m. OK MS C++ TESTS 57 61 409600 1000
64346146 vjudge4 A Nov. 6, 2019, 6:23 a.m. OK MS C++ TESTS 57 61 409600 1000
64472275 Noterta A Nov. 7, 2019, 1:24 p.m. OK MS C++ TESTS 57 61 1433600 1000
63669515 Vecando A Oct. 28, 2019, 4:26 p.m. OK MS C++ 2017 TESTS 57 62 0 1000
65827278 vjudge1 A Nov. 27, 2019, 1:02 p.m. OK MS C++ 2017 TESTS 57 62 409600 1000
63904375 vjudge1 A Oct. 31, 2019, 6:04 a.m. OK MS C++ 2017 TESTS 57 62 409600 1000
63535849 CoachXP A Oct. 27, 2019, 8:03 a.m. OK MS C++ 2017 TESTS 57 62 409600 1000
63617595 Vecando A Oct. 27, 2019, 8:24 p.m. OK MS C++ 2017 TESTS 57 62 1638400 1000
65511110 pichulia A Nov. 22, 2019, 3:50 a.m. OK MS C++ 2017 TESTS 57 77 0 1000
63779651 F91WoDaGe A Oct. 30, 2019, 10:39 a.m. OK MS C++ 2017 TESTS 57 77 409600 1000
63521459 Lus1589 A Oct. 27, 2019, 3:52 a.m. OK MS C++ 2017 TESTS 57 140 307200 1000
64563184 aozong A Nov. 9, 2019, 6:46 a.m. OK MS C++ 2017 TESTS 57 140 716800 1000
63907842 AslanX_X ndhp2000 MinhNguye A Oct. 31, 2019, 7:10 a.m. OK MS C++ 2017 TESTS 57 140 819200 1000
63520602 mm944 A Oct. 27, 2019, 3:35 a.m. OK PascalABC.NET TESTS 57 920 0 1000
64765898 mayakin A Nov. 12, 2019, 8:40 p.m. OK PHP TESTS 57 155 24780800 1000
63521742 8e7 A Oct. 27, 2019, 3:57 a.m. OK PyPy 2 TESTS 57 124 4812800 1000
67254209 jbessa lestwins RaquelFolz A Dec. 19, 2019, 8:47 p.m. OK PyPy 2 TESTS 57 140 9830400 1000
63521453 FlakeLCR wow_ok conqueror_of_tourist A Oct. 27, 2019, 3:52 a.m. OK PyPy 3 TESTS 57 217 9420800 1000
63693955 jhehey99 A Oct. 29, 2019, 4:30 a.m. OK PyPy 3 TESTS 57 233 11468800 1000
63693833 jhehey99 A Oct. 29, 2019, 4:24 a.m. OK PyPy 3 TESTS 57 233 11468800 1000
63691832 Mike10 A Oct. 29, 2019, 3:08 a.m. OK PyPy 3 TESTS 57 234 9625600 1000
64745082 Leendertz A Nov. 12, 2019, 1:16 p.m. OK PyPy 3 TESTS 57 234 11264000 1000
65516194 interestingLSY A Nov. 22, 2019, 6:11 a.m. OK PyPy 3 TESTS 57 248 13312000 1000
63693853 jhehey99 A Oct. 29, 2019, 4:25 a.m. OK PyPy 3 TESTS 57 249 11468800 1000
66609316 juandrengifo A Dec. 10, 2019, 8:20 p.m. OK PyPy 3 TESTS 57 249 12492800 1000
66658664 juandrengifo A Dec. 12, 2019, 2:37 a.m. OK PyPy 3 TESTS 57 249 12492800 1000
66653549 juandrengifo A Dec. 11, 2019, 8:37 p.m. OK PyPy 3 TESTS 57 249 12492800 1000
64444084 resita A Nov. 7, 2019, 5:48 a.m. OK Python 2 TESTS 57 218 5939200 1000
64146784 tarsx A Nov. 3, 2019, 10:08 a.m. OK Python 3 TESTS 57 124 7270400 1000
65132948 aniket.t A Nov. 16, 2019, 4:38 a.m. OK Python 3 TESTS 57 139 6553600 1000
64605047 shozy A Nov. 9, 2019, 8:07 p.m. OK Python 3 TESTS 57 139 7065600 1000
66911342 Drago_ A Dec. 15, 2019, 5:43 a.m. OK Python 3 TESTS 57 139 7168000 1000
63522905 JacksonGoerner SAKT leaen A Oct. 27, 2019, 4:21 a.m. OK Python 3 TESTS 57 155 8396800 1000
63533609 rehackry A Oct. 27, 2019, 7:26 a.m. OK Python 3 TESTS 57 171 7065600 1000
63656388 tamahom A Oct. 28, 2019, 12:50 p.m. OK Python 3 TESTS 57 171 7680000 1000
63520890 yliu1021 A Oct. 27, 2019, 3:41 a.m. OK Python 3 TESTS 57 171 8499200 1000
64459273 Jannoshh A Nov. 7, 2019, 9:45 a.m. OK Python 3 TESTS 57 171 8601600 1000
63520598 UnsignedByte A Oct. 27, 2019, 3:35 a.m. OK Python 3 TESTS 57 171 9113600 1000
66425499 RubenRETM A Dec. 6, 2019, 9:15 p.m. OK Ruby TESTS 57 826 18329600 1000
63563479 lucifer1004 A Oct. 27, 2019, 3:04 p.m. OK Rust TESTS 57 46 1536000 1000
64062290 yuto953 A Nov. 2, 2019, 4:26 a.m. OK Rust TESTS 57 77 409600 1000

remove filters

Back to search problems