Codeforces Round 786 (Div. 3)

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
1674 Codeforces Round 786 (Div. 3) FINISHED False 7200 80321099 May 2, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 26412 ) A Number Transformation PROGRAMMING constructive algorithms math

B'You are given two integers x and y . You want to choose two strictly positive (greater than zero) integers a and b , and then apply the following operation to x exactly a times: replace x with b cdot x . You want to find two positive integers a and b such that x becomes equal to y after this process. If there are multiple possible pairs, you can choose any of them. If there is no such pair, report it. For example: The first line contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Each test case consists of one line containing two integers x and y ( 1 <= x, y <= 100 ). If it is possible to choose a pair of positive integers a and b so that x becomes y after the aforementioned process, print these two integers. The integers you print should be not less than 1 and not greater than 10^9 (it can be shown that if the answer exists, there is a pair of integers a and b meeting these constraints). If there are multiple such pairs, print any of them. If it is impossible to choose a pair of integers a and b so that x becomes y , print the integer 0 twice. '...

Tutorials

102482

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
155764623 bkifhr8 A May 3, 2022, 1:10 p.m. OK Clang++17 Diagnostics TESTS 17 233 1024000
155792715 DEVANG2304 A May 3, 2022, 7:08 p.m. OK GNU C11 TESTS 17 46 0
155789227 predawn A May 3, 2022, 6:05 p.m. OK GNU C11 TESTS 17 46 0
155763080 liuyt A May 3, 2022, 12:53 p.m. OK GNU C11 TESTS 17 46 0
155776641 Kiteretsuu A May 3, 2022, 3 p.m. OK GNU C11 TESTS 17 46 0
155753867 d19amine A May 3, 2022, 11:14 a.m. OK GNU C11 TESTS 17 46 0
155741199 turjotasin A May 3, 2022, 8:57 a.m. OK GNU C11 TESTS 17 61 0
155809841 yibaiyi20 A May 4, 2022, 3:59 a.m. OK GNU C11 TESTS 17 61 0
155784148 dp_Hero A May 3, 2022, 4:43 p.m. OK GNU C11 TESTS 17 62 0
155739379 GsquareT A May 3, 2022, 8:37 a.m. OK GNU C11 TESTS 17 62 0
155810618 Dyaa A May 4, 2022, 4:22 a.m. OK GNU C11 TESTS 17 62 0
155811077 adarsh_raj A May 4, 2022, 4:35 a.m. OK GNU C++14 TESTS 17 15 0
155806938 spoonjunxi A May 4, 2022, 2:43 a.m. OK GNU C++14 TESTS 17 15 0
155806477 FKJDASOI A May 4, 2022, 2:32 a.m. OK GNU C++14 TESTS 17 15 0
155815711 leeminrui A May 4, 2022, 6 a.m. OK GNU C++14 TESTS 17 15 0
155814674 eiwofnofierig A May 4, 2022, 5:41 a.m. OK GNU C++14 TESTS 17 15 0
155814365 tzy_tmy A May 4, 2022, 5:36 a.m. OK GNU C++14 TESTS 17 15 0
155812095 silent_decoder A May 4, 2022, 4:56 a.m. OK GNU C++14 TESTS 17 15 0
155811361 bakaitbaba A May 4, 2022, 4:42 a.m. OK GNU C++14 TESTS 17 15 0
155811086 Xiaohuba A May 4, 2022, 4:36 a.m. OK GNU C++14 TESTS 17 15 0
155811056 SegFaultError A May 4, 2022, 4:35 a.m. OK GNU C++14 TESTS 17 15 0
155814066 I_cannot A May 4, 2022, 5:31 a.m. OK GNU C++17 TESTS 17 15 0
155814918 yilunyou A May 4, 2022, 5:46 a.m. OK GNU C++17 TESTS 17 15 0
155814797 _77 A May 4, 2022, 5:44 a.m. OK GNU C++17 TESTS 17 15 0
155813857 rmsa_07 A May 4, 2022, 5:27 a.m. OK GNU C++17 TESTS 17 15 0
155813750 zahidtdx61 A May 4, 2022, 5:25 a.m. OK GNU C++17 TESTS 17 15 0
155811851 tarunbhandari825 A May 4, 2022, 4:52 a.m. OK GNU C++17 TESTS 17 15 0
155811449 gabrielwu A May 4, 2022, 4:43 a.m. OK GNU C++17 TESTS 17 15 0
155809454 TsReaper A May 4, 2022, 3:49 a.m. OK GNU C++17 TESTS 17 15 0
155808672 Mukesh_Thakur A May 4, 2022, 3:29 a.m. OK GNU C++17 TESTS 17 15 0
155808077 Basilhijaz A May 4, 2022, 3:14 a.m. OK GNU C++17 TESTS 17 15 0
155781911 Mohammed_faizan A May 3, 2022, 4:11 p.m. OK GNU C++17 (64) TESTS 17 15 0
155784850 isheoran A May 3, 2022, 4:55 p.m. OK GNU C++17 (64) TESTS 17 15 0
155786216 mbdbr A May 3, 2022, 5:16 p.m. OK GNU C++17 (64) TESTS 17 15 0
155787825 pd_codes A May 3, 2022, 5:44 p.m. OK GNU C++17 (64) TESTS 17 15 0
155806475 dfzgcj A May 4, 2022, 2:32 a.m. OK GNU C++17 (64) TESTS 17 15 0
155809163 xhgua A May 4, 2022, 3:42 a.m. OK GNU C++17 (64) TESTS 17 15 0
155809247 YYYLLL2021 A May 4, 2022, 3:44 a.m. OK GNU C++17 (64) TESTS 17 15 0
155810145 2-qiym A May 4, 2022, 4:08 a.m. OK GNU C++17 (64) TESTS 17 15 0
155810605 zlc1114 A May 4, 2022, 4:22 a.m. OK GNU C++17 (64) TESTS 17 15 0
155812482 f_x20210902 A May 4, 2022, 5:03 a.m. OK GNU C++17 (64) TESTS 17 15 0
155782106 AbdAlrahman_Emad A May 3, 2022, 4:13 p.m. OK GNU C++20 (64) TESTS 17 0 0
155799966 Aquanox A May 3, 2022, 10:34 p.m. OK GNU C++20 (64) TESTS 17 15 0
155812554 adilz01 A May 4, 2022, 5:05 a.m. OK GNU C++20 (64) TESTS 17 15 0
155811733 yzzlqyxc A May 4, 2022, 4:49 a.m. OK GNU C++20 (64) TESTS 17 15 0
155804125 I_Remember_Olya_ashmelev A May 4, 2022, 1:23 a.m. OK GNU C++20 (64) TESTS 17 15 0
155802916 wwwk A May 4, 2022, 12:36 a.m. OK GNU C++20 (64) TESTS 17 15 0
155800300 defaultedplayer A May 3, 2022, 10:47 p.m. OK GNU C++20 (64) TESTS 17 15 0
155798153 Syeda_Raisa_Rahman A May 3, 2022, 9:31 p.m. OK GNU C++20 (64) TESTS 17 15 0
155815134 modiii A May 4, 2022, 5:50 a.m. OK GNU C++20 (64) TESTS 17 15 0
155815101 sathu.hebbar A May 4, 2022, 5:50 a.m. OK GNU C++20 (64) TESTS 17 15 0
155737498 AM03_00 A May 3, 2022, 8:15 a.m. OK Go TESTS 17 62 204800
155751490 Sempr A May 3, 2022, 10:49 a.m. OK Go TESTS 17 280 409600
155740643 vashisht A May 3, 2022, 8:51 a.m. OK Go TESTS 17 296 819200
155776457 sf14t A May 3, 2022, 2:58 p.m. OK Java 11 TESTS 17 171 0
155762655 zenilharia26 A May 3, 2022, 12:49 p.m. OK Java 11 TESTS 17 171 0
155732804 swarup_312 A May 3, 2022, 7:15 a.m. OK Java 11 TESTS 17 171 0
155733175 akashkumarkly A May 3, 2022, 7:20 a.m. OK Java 11 TESTS 17 186 0
155780598 ayush__1411 A May 3, 2022, 3:53 p.m. OK Java 11 TESTS 17 186 0
155770081 yadatisaiviswas3 A May 3, 2022, 1:37 p.m. OK Java 11 TESTS 17 187 0
155779148 gaju321 A May 3, 2022, 3:34 p.m. OK Java 11 TESTS 17 187 0
155778698 sharnit A May 3, 2022, 3:28 p.m. OK Java 11 TESTS 17 187 0
155793886 rohanailoni A May 3, 2022, 7:35 p.m. OK Java 11 TESTS 17 202 0
155778941 suhas5979 A May 3, 2022, 3:31 p.m. OK Java 11 TESTS 17 202 0
155777523 srvptk97 A May 3, 2022, 3:13 p.m. OK Java 8 TESTS 17 93 0
155788209 Yehia8 A May 3, 2022, 5:50 p.m. OK Java 8 TESTS 17 108 0
155736164 pandeyjii_11 A May 3, 2022, 8 a.m. OK Java 8 TESTS 17 109 0
155813760 rajneesh.osho A May 4, 2022, 5:25 a.m. OK Java 8 TESTS 17 109 0
155808579 amit_roy A May 4, 2022, 3:27 a.m. OK Java 8 TESTS 17 109 0
155794200 Shemo A May 3, 2022, 7:42 p.m. OK Java 8 TESTS 17 109 0
155751659 less_ordinary A May 3, 2022, 10:51 a.m. OK Java 8 TESTS 17 109 0
155749877 Zicode A May 3, 2022, 10:31 a.m. OK Java 8 TESTS 17 109 0
155794674 ShivamMehta A May 3, 2022, 7:56 p.m. OK Java 8 TESTS 17 109 6348800
155770316 yahiamoussadek1 A May 3, 2022, 1:40 p.m. OK Java 8 TESTS 17 124 0
155753822 cas_ZhangLing A May 3, 2022, 11:13 a.m. OK Kotlin 1.4 TESTS 17 171 0
155758650 darkl0rd A May 3, 2022, 12:04 p.m. OK Kotlin 1.6 TESTS 17 234 307200
155776481 GandyA23 A May 3, 2022, 2:58 p.m. OK Kotlin 1.6 TESTS 17 295 307200
155771277 nzotovnn A May 3, 2022, 1:51 p.m. OK Kotlin 1.6 TESTS 17 296 409600
155764492 st20240413 A May 3, 2022, 1:08 p.m. OK MS C++ 2017 TESTS 17 15 0
155775999 BIvanV A May 3, 2022, 2:52 p.m. OK MS C++ 2017 TESTS 17 31 0
155806307 emailam A May 4, 2022, 2:27 a.m. OK MS C++ 2017 TESTS 17 31 0
155735221 CrashMaster A May 3, 2022, 7:48 a.m. OK MS C++ 2017 TESTS 17 31 0
155764600 bkifhr6 A May 3, 2022, 1:10 p.m. OK MS C++ 2017 TESTS 17 46 0
155753104 Jenshen A May 3, 2022, 11:05 a.m. OK MS C++ 2017 TESTS 17 46 0
155738524 hondajke A May 3, 2022, 8:27 a.m. OK MS C++ 2017 TESTS 17 61 0
155725733 Bharat5007 A May 3, 2022, 5:35 a.m. OK MS C++ 2017 TESTS 17 61 0
155789349 Solloboi A May 3, 2022, 6:07 p.m. OK MS C++ 2017 TESTS 17 62 0
155800424 abdo10092001117 A May 3, 2022, 10:51 p.m. OK MS C++ 2017 TESTS 17 62 0
155736803 tabibi A May 3, 2022, 8:07 a.m. OK .NET Core C# TESTS 17 109 3072000
155760789 n.n.n.kz A May 3, 2022, 12:27 p.m. OK PHP TESTS 17 62 0
155812408 abhijeet.panihar.cse20 A May 4, 2022, 5:02 a.m. OK PyPy 3 TESTS 17 170 4710400
155729507 Adolf988 A May 3, 2022, 6:35 a.m. OK PyPy 3 TESTS 17 170 6041600
155728518 random__person A May 3, 2022, 6:22 a.m. OK PyPy 3 TESTS 17 234 7168000
155725032 Rishikesh1004 A May 3, 2022, 5:25 a.m. OK PyPy 3 TESTS 17 280 5734400
155780304 dimasik06 A May 3, 2022, 3:49 p.m. OK PyPy 3 TESTS 17 280 5939200
155728726 sohilkhanduja A May 3, 2022, 6:25 a.m. OK PyPy 3 TESTS 17 280 6348800
155770487 kaushikkv A May 3, 2022, 1:42 p.m. OK PyPy 3 TESTS 17 296 5529600
155786059 saisanjith A May 3, 2022, 5:13 p.m. OK PyPy 3 TESTS 17 296 6553600
155753748 Devoid A May 3, 2022, 11:12 a.m. OK PyPy 3 TESTS 17 342 6860800
155814072 tushar26427 A May 4, 2022, 5:31 a.m. OK PyPy 3-64 TESTS 17 109 6041600
155792307 MashaM A May 3, 2022, 7 p.m. OK PyPy 3-64 TESTS 17 109 9216000
155739266 sjNxksbzj A May 3, 2022, 8:36 a.m. OK PyPy 3-64 TESTS 17 139 9625600
155781355 nealzane A May 3, 2022, 4:03 p.m. OK PyPy 3-64 TESTS 17 140 8192000
155731701 abhaumik24 A May 3, 2022, 7:02 a.m. OK PyPy 3-64 TESTS 17 156 23961600
155793022 3th3rn3t A May 3, 2022, 7:14 p.m. OK PyPy 3-64 TESTS 17 234 8192000
155728976 tenko_chilante A May 3, 2022, 6:28 a.m. OK PyPy 3-64 TESTS 17 234 8192000
155742375 Miiishenka A May 3, 2022, 9:09 a.m. OK PyPy 3-64 TESTS 17 234 10444800
155813465 zahidtdx61 A May 4, 2022, 5:20 a.m. OK PyPy 3-64 TESTS 17 249 9318400
155792313 Slaur A May 3, 2022, 7 p.m. OK PyPy 3-64 TESTS 17 249 9523200
155773986 PMiguelez A May 3, 2022, 2:25 p.m. OK Python 3 TESTS 17 62 512000
155809609 sahilbaid A May 4, 2022, 3:53 a.m. OK Python 3 TESTS 17 77 102400
155745473 adilet_shymer_2025 A May 3, 2022, 9:41 a.m. OK Python 3 TESTS 17 78 204800
155724852 Pars03 A May 3, 2022, 5:22 a.m. OK Python 3 TESTS 17 93 409600
155790245 SiKey25 A May 3, 2022, 6:22 p.m. OK Python 3 TESTS 17 93 512000
155789236 Dimozavr A May 3, 2022, 6:05 p.m. OK Python 3 TESTS 17 93 512000
155770336 kaushikkv A May 3, 2022, 1:40 p.m. OK Python 3 TESTS 17 109 0
155760865 Galaxie_univers A May 3, 2022, 12:28 p.m. OK Python 3 TESTS 17 109 0
155812495 Uruguay A May 4, 2022, 5:04 a.m. OK Python 3 TESTS 17 124 0
155809051 ziang.chu0 A May 4, 2022, 3:39 a.m. OK Python 3 TESTS 17 124 0

remove filters

Back to search problems