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 |
|---|---|---|---|---|---|---|
| 249 | Codeforces Round 152 (Div. 1) | FINISHED | False | 8100 | 422548223 | Nov. 25, 2012, 3:30 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 355 ) | E | Endless Matrix | PROGRAMMING | math | 2500 |
A Russian space traveller Alisa Selezneva, like any other schoolgirl of the late 21 century, is interested in science. She has recently visited the MIT (Moscow Institute of Time), where its chairman and the co-inventor of the time machine academician Petrov told her about the construction of a time machine. During the demonstration of the time machine performance Alisa noticed that the machine does not have high speed and the girl got interested in the reason for such disadvantage. As it turns out on closer examination, one of the problems that should be solved for the time machine isn't solved by an optimal algorithm. If you find a way to solve this problem optimally, the time machine will run faster and use less energy. A task that none of the staff can solve optimally is as follows. There exists a matrix a , which is filled by the following rule: The cells are consecutive positive integers, starting with one. Besides, a i , j < a t , k ( i , j , t , k ≥ 1 ), if: max ( i , j ) < max ( t , k ) ; max ( i , j ) = max ( t , k ) and j < k ; max ( i , j ) = max ( t , k ) , j = k and i > t . So, after the first 36 numbers are inserted, matrix a will look as follows: To solve the problem, you should learn to find rather quickly for the given values of x 1 , y 1 , x 2 and y 2 ( x 1 ≤ x 2 , y 1 ≤ y 2 ) the meaning of expression: As the meaning of this expression can be large enough, it is sufficient to know only the last 10 digits of the sought value. So, no one in MTI can solve the given task. Alice was brave enough to use the time machine and travel the past to help you. Your task is to write a program that uses the given values x 1 , y 1 , x 2 and y 2 finds the last 10 digits of the given expression. The first input line contains a single integer t ( 1 ≤ t ≤ 10 5 ) — the number of test sets for which you should solve the problem. Each of the next t lines contains the description of a test — four positive integers x 1 , y 1 , x 2 and y 2 ( 1 ≤ x 1 ≤ x 2 ≤ 10 9 , |
| Разбор задач Codeforces Round #152 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 2865667 | howsiwei | E | Jan. 2, 2013, 8:02 a.m. | OK | GNU C++ | TESTS | 33 | 375 | 0 | 2500 | |
| 10596318 | I_Love_Bofei | E | April 5, 2015, 1:13 a.m. | OK | GNU C++ | TESTS | 33 | 404 | 0 | 2500 | |
| 2924611 | hariprasath | E | Jan. 14, 2013, 4:14 p.m. | OK | GNU C++ | TESTS | 33 | 421 | 0 | 2500 | |
| 41747017 | Scut82 | E | Aug. 18, 2018, 7:59 a.m. | OK | GNU C++ | TESTS | 33 | 434 | 0 | 2500 | |
| 11310161 | Athee | E | May 26, 2015, 10:12 p.m. | OK | GNU C++ | TESTS | 33 | 436 | 0 | 2500 | |
| 8671332 | pwecar | E | Nov. 12, 2014, 12:53 p.m. | OK | GNU C++ | TESTS | 33 | 436 | 0 | 2500 | |
| 41826902 | Scut82 | E | Aug. 19, 2018, 12:31 p.m. | OK | GNU C++ | TESTS | 33 | 466 | 0 | 2500 | |
| 27842536 | Scut82 | E | June 17, 2017, 9:23 a.m. | OK | GNU C++ | TESTS | 33 | 468 | 0 | 2500 | |
| 8865167 | shigule | E | Nov. 27, 2014, 1:05 a.m. | OK | GNU C++ | TESTS | 33 | 468 | 0 | 2500 | |
| 8830275 | duzfan | E | Nov. 24, 2014, 2:37 a.m. | OK | GNU C++ | TESTS | 33 | 468 | 0 | 2500 | |
| 2697078 | konstantanter | E | Dec. 5, 2012, 12:54 p.m. | OK | GNU C++0x | TESTS | 33 | 484 | 0 | 2500 | |
| 2648187 | roosephu | E | Nov. 25, 2012, 5:14 p.m. | OK | GNU C++0x | TESTS | 33 | 937 | 0 | 2500 | |
| 2659441 | BSBandme | E | Nov. 26, 2012, 2:21 p.m. | OK | GNU C++0x | TESTS | 33 | 1078 | 0 | 2500 | |
| 3639351 | itytwt | E | April 27, 2013, 5:20 a.m. | OK | GNU C++0x | TESTS | 33 | 2046 | 0 | 2500 | |
| 2649181 | s-quark | E | Nov. 25, 2012, 5:33 p.m. | OK | GNU C++0x | TESTS | 33 | 2671 | 0 | 2500 | |
| 2655526 | cgy4ever | E | Nov. 26, 2012, 2:15 a.m. | OK | GNU C++0x | TESTS | 33 | 2906 | 0 | 2500 | |
| 11531204 | zld3794955 | E | June 11, 2015, 9:48 a.m. | OK | GNU C++11 | TESTS | 33 | 342 | 0 | 2500 | |
| 57898366 | lopare | E | July 28, 2019, 2:35 p.m. | OK | GNU C++11 | TESTS | 33 | 436 | 0 | 2500 | |
| 57821735 | py_ultron | E | July 26, 2019, 11:56 p.m. | OK | GNU C++11 | TESTS | 33 | 436 | 0 | 2500 | |
| 17129263 | freebsdx | E | April 2, 2016, 11:43 a.m. | OK | GNU C++11 | TESTS | 33 | 498 | 1843200 | 2500 | |
| 17974130 | jkxing | E | May 18, 2016, 2:19 a.m. | OK | GNU C++11 | TESTS | 33 | 966 | 2252800 | 2500 | |
| 12138017 | Xellos | E | July 20, 2015, 9:41 p.m. | OK | GNU C++11 | TESTS | 33 | 998 | 0 | 2500 | |
| 31274835 | lawyerphx | E | Oct. 13, 2017, 12:53 p.m. | OK | GNU C++11 | TESTS | 33 | 1028 | 0 | 2500 | |
| 17974136 | jkxing | E | May 18, 2016, 2:20 a.m. | OK | GNU C++11 | TESTS | 33 | 1090 | 2252800 | 2500 | |
| 40261103 | emoairx | E | July 13, 2018, 12:27 p.m. | OK | GNU C++11 | TESTS | 33 | 1122 | 0 | 2500 | |
| 40260952 | emoairx | E | July 13, 2018, 12:23 p.m. | OK | GNU C++11 | TESTS | 33 | 1122 | 0 | 2500 | |
| 56149672 | Scut82 | E | June 27, 2019, 7:42 a.m. | OK | GNU C++14 | TESTS | 33 | 498 | 0 | 2500 | |
| 22713679 | jasonvictoryan | E | Dec. 5, 2016, 2:32 p.m. | OK | GNU C++14 | TESTS | 33 | 530 | 0 | 2500 | |
| 23662150 | Ali.Pi | E | Jan. 9, 2017, 7:59 a.m. | OK | GNU C++14 | TESTS | 33 | 590 | 1945600 | 2500 | |
| 56153728 | Scut82 | E | June 27, 2019, 9:14 a.m. | OK | GNU C++14 | TESTS | 33 | 684 | 0 | 2500 | |
| 56155399 | Scut82 | E | June 27, 2019, 9:57 a.m. | OK | GNU C++14 | TESTS | 33 | 872 | 0 | 2500 | |
| 67200872 | ElangBondol | E | Dec. 19, 2019, 10:52 a.m. | OK | GNU C++14 | TESTS | 33 | 1340 | 0 | 2500 | |
| 23354368 | InvUsr | E | Dec. 27, 2016, 7:30 a.m. | OK | GNU C++14 | TESTS | 33 | 1496 | 1945600 | 2500 | |
| 33639372 | mengdai | E | Dec. 26, 2017, 7:50 a.m. | OK | GNU C++14 | TESTS | 33 | 2338 | 1945600 | 2500 | |
| 57083034 | hjk1030 | E | July 15, 2019, 7:51 a.m. | OK | GNU C++17 | TESTS | 33 | 778 | 0 | 2500 | |
| 59441755 | morestep | E | Aug. 25, 2019, 11:31 a.m. | OK | GNU C++17 | TESTS | 33 | 1652 | 0 | 2500 | |
| 4337015 | ssmike | E | Aug. 25, 2013, 6:07 p.m. | OK | Haskell | TESTS | 33 | 2340 | 2150400 | 2500 | |
| 2650202 | SergeyLazarev | E | Nov. 25, 2012, 6:41 p.m. | OK | Java 6 | TESTS | 33 | 1531 | 409600 | 2500 | |
| 2650874 | stevenkplus | E | Nov. 25, 2012, 7:20 p.m. | OK | Java 6 | TESTS | 33 | 1953 | 307200 | 2500 | |
| 2650609 | uwi | E | Nov. 25, 2012, 7:02 p.m. | OK | Java 6 | TESTS | 33 | 2046 | 204800 | 2500 | |
| 2806979 | llaki | E | Dec. 22, 2012, 1:35 p.m. | OK | Java 6 | TESTS | 33 | 2074 | 2764800 | 2500 | |
| 2648005 | XilinX | E | Nov. 25, 2012, 5:10 p.m. | OK | Java 6 | TESTS | 33 | 2125 | 409600 | 2500 | |
| 2672792 | Bugman | E | Nov. 28, 2012, 12:44 p.m. | OK | Java 6 | TESTS | 33 | 2140 | 409600 | 2500 | |
| 2648719 | seanwu | E | Nov. 25, 2012, 5:25 p.m. | OK | Java 6 | TESTS | 33 | 2625 | 409600 | 2500 | |
| 2650495 | Seyaua | E | Nov. 25, 2012, 6:57 p.m. | OK | Java 6 | TESTS | 33 | 2687 | 409600 | 2500 | |
| 2681925 | rng_58 | E | Nov. 30, 2012, 7 p.m. | OK | Java 6 | TESTS | 33 | 2734 | 409600 | 2500 | |
| 3577802 | niquefa_diego | E | April 20, 2013, 12:33 a.m. | OK | Java 6 | TESTS | 33 | 2734 | 512000 | 2500 | |
| 2650104 | riadwaw | E | Nov. 25, 2012, 6:36 p.m. | OK | Java 7 | TESTS | 33 | 1406 | 204800 | 2500 | |
| 2646685 | OgieKako | E | Nov. 25, 2012, 4:41 p.m. | OK | Java 7 | TESTS | 33 | 1812 | 204800 | 2500 | |
| 2650809 | uwi | E | Nov. 25, 2012, 7:16 p.m. | OK | Java 7 | TESTS | 33 | 2046 | 0 | 2500 | |
| 2699403 | FattyPenguin | E | Dec. 6, 2012, 8:47 a.m. | OK | Java 7 | TESTS | 33 | 2500 | 102400 | 2500 | |
| 2699402 | FattyPenguin | E | Dec. 6, 2012, 8:47 a.m. | OK | Java 7 | TESTS | 33 | 2515 | 102400 | 2500 | |
| 2650743 | bmerry | E | Nov. 25, 2012, 7:11 p.m. | OK | Java 7 | TESTS | 33 | 2875 | 307200 | 2500 | |
| 51165903 | ruo | E | March 11, 2019, 2:16 p.m. | OK | Java 8 | TESTS | 33 | 2994 | 0 | 2500 | |
| 2650954 | pooya_ | E | Nov. 25, 2012, 7:27 p.m. | OK | MS C++ | TESTS | 33 | 2125 | 0 | 2500 | |
| 2911132 | dc. | E | Jan. 13, 2013, 12:41 p.m. | OK | Python 2 | TESTS | 33 | 2343 | 1638400 | 2500 | |
| 2785402 | daidailanlan | E | Dec. 17, 2012, 7 a.m. | OK | Python 2 | TESTS | 33 | 2375 | 1638400 | 2500 | |
| 2654971 | Komaki | E | Nov. 25, 2012, 9:42 p.m. | OK | Python 2 | TESTS | 33 | 2484 | 0 | 2500 | |
| 13256571 | HJWJBSR | E | Sept. 28, 2015, 2:05 a.m. | OK | Python 2 | TESTS | 33 | 2682 | 0 | 2500 | |
| 53938702 | Shine_Sky | E | May 10, 2019, 12:44 a.m. | OK | Python 2 | TESTS | 33 | 2682 | 1638400 | 2500 | |
| 18534033 | duyixian | E | June 17, 2016, 1:37 a.m. | OK | Python 2 | TESTS | 33 | 2712 | 0 | 2500 | |
| 7911236 | MiFaFaOvO | E | Sept. 22, 2014, 2:37 p.m. | OK | Python 2 | TESTS | 33 | 2714 | 0 | 2500 | |
| 31865920 | apiadu | E | Oct. 29, 2017, 12:10 p.m. | OK | Python 2 | TESTS | 33 | 2714 | 1638400 | 2500 | |
| 35855007 | ______u______ | E | March 2, 2018, 7:52 p.m. | OK | Python 2 | TESTS | 33 | 2744 | 4608000 | 2500 | |
| 35854724 | ______n______ | E | March 2, 2018, 7:47 p.m. | OK | Python 2 | TESTS | 33 | 2744 | 4608000 | 2500 |
Back to search problems