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 |
---|---|---|---|---|---|---|
1982 | Codeforces Round 955 (Div. 2, with prizes from NEAR!) | FINISHED | False | 7200 | 12497099 | June 25, 2024, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 25132 ) | A | Soccer | PROGRAMMING | greedy implementation math sortings |
B'Dima loves watching soccer. In such a game, the score on the scoreboard is represented as x : y , where x is the number of goals of the first team, and y is the number of goals of the second team. At any given time, only one team can score a goal, so the score x : y can change to either (x + 1) : y , or x : (y + 1) . While watching a soccer game, Dima was distracted by very important matters, and after some time, he returned to watching the game. Dima remembers the score right before he was distracted, and the score right after he returned. Given these two scores, he wonders the following question. Is it possible that, while Dima was not watching the game, the teams never had an equal score? It is guaranteed that at neither of the two time points Dima remembers the teams had equal scores. However, it is possible that the score did not change during his absence. Help Dima and answer the question! Each test consists of several test cases. The first line contains an integer t ( 1 <= t <= 10^{4} ) -- the number of test cases. Then follows the description of the test cases. The first line of each test case contains two integers x_{1}, y_{1} ( 0 <= x_{1}, y_{1} <= 10^{9} , x_{1} neq y_{1} ) -- the score before Dima was distracted. The second line of each test case contains two integers x_{2}, y_{2} ( x_{1} <= x_{2} <= 10^{9} , y_{1} <= y_{2} <= 10^{9} , x_{2} neq y_{2} ) -- the score when Dima returned. For each test case, output "YES" without quotes if it is possible, that the teams never had a tie while Dima was away, otherwise output "NO" without quotes. You can output each letter in any case (for example, the strings "yEs", "yes", "Yes", and "YES" will be recognized as a positive answer). In the first test case, the score before Dima left was 1 : 0 . When he leaves, the first team scores several goals in a row until the score becom'... |
130839 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
267439933 | kareem_badr | A | June 25, 2024, 10:51 p.m. | OK | C# 10 | TESTS | 4 | 109 | 3174400 | ||
267460896 | hashi_rama | A | June 26, 2024, 4:57 a.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
267458838 | _Kevin | A | June 26, 2024, 4:34 a.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
267456913 | ayushk1234 | A | June 26, 2024, 4:13 a.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
267455654 | NoOb_MASTER07 | A | June 26, 2024, 3:58 a.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
267453289 | sujay_sikandar | A | June 26, 2024, 3:25 a.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
267449732 | ziwen_wang | A | June 26, 2024, 2:29 a.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
267447717 | kdjayyyy | A | June 26, 2024, 1:51 a.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
267447021 | Sanyueyetu | A | June 26, 2024, 1:36 a.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
267440312 | llzer | A | June 25, 2024, 10:59 p.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
267441732 | Sunnynotsan1 | A | June 25, 2024, 11:32 p.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
267450199 | sanjay84 | A | June 26, 2024, 2:36 a.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 31 | 0 | ||
267458630 | xinshou | A | June 26, 2024, 4:32 a.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 31 | 0 | ||
267452549 | blazeofdu | A | June 26, 2024, 3:14 a.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 31 | 0 | ||
267437491 | iBlameFrancisco | A | June 25, 2024, 10:01 p.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 31 | 0 | ||
267466437 | Bansal3112 | A | June 26, 2024, 5:51 a.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 46 | 0 | ||
267467535 | NgocPhu | A | June 26, 2024, 6:01 a.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 46 | 0 | ||
267467253 | Arin_Gupta | A | June 26, 2024, 5:58 a.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 46 | 0 | ||
267467207 | Nader_Osama | A | June 26, 2024, 5:58 a.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 46 | 0 | ||
267467175 | moksh_malhotra | A | June 26, 2024, 5:58 a.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 46 | 0 | ||
267466413 | 516manav | A | June 26, 2024, 5:51 a.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 46 | 0 | ||
267446593 | Luxh | A | June 26, 2024, 1:26 a.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 31 | 0 | ||
267463483 | Anonymous_chief | A | June 26, 2024, 5:24 a.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 31 | 0 | ||
267459321 | ChaitanyaArora_2021033 | A | June 26, 2024, 4:39 a.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 31 | 0 | ||
267450341 | Dispensable | A | June 26, 2024, 2:39 a.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 31 | 0 | ||
267433649 | ipy_ | A | June 25, 2024, 8:59 p.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 31 | 0 | ||
267467910 | deckedge | A | June 26, 2024, 6:04 a.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 46 | 0 | ||
267467491 | MOHIR_MBSTU | A | June 26, 2024, 6 a.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 46 | 0 | ||
267467146 | mdali17 | A | June 26, 2024, 5:57 a.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 46 | 0 | ||
267466678 | anupama1871980 | A | June 26, 2024, 5:53 a.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 46 | 0 | ||
267466364 | GOURAB | A | June 26, 2024, 5:50 a.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 46 | 0 | ||
267438512 | bluemegane | A | June 25, 2024, 10:20 p.m. | OK | C# 8 | TESTS | 4 | 139 | 2969600 | ||
267450216 | snowythecat | A | June 26, 2024, 2:37 a.m. | OK | GNU C11 | TESTS | 4 | 31 | 102400 | ||
267447302 | Hori | A | June 26, 2024, 1:42 a.m. | OK | GNU C11 | TESTS | 4 | 31 | 102400 | ||
267447042 | Hori | A | June 26, 2024, 1:37 a.m. | OK | GNU C11 | TESTS | 4 | 31 | 102400 | ||
267447409 | Hori | A | June 26, 2024, 1:45 a.m. | OK | GNU C11 | TESTS | 4 | 46 | 102400 | ||
267453974 | kapilyadav20005 | A | June 26, 2024, 3:35 a.m. | OK | GNU C11 | TESTS | 4 | 62 | 102400 | ||
267402782 | chandini_chinta | A | June 25, 2024, 4:31 p.m. | OK | GNU C11 | TESTS | 4 | 77 | 0 | ||
267410244 | Tapu2168 | A | June 25, 2024, 5:24 p.m. | OK | GNU C11 | TESTS | 4 | 77 | 0 | ||
267455258 | AbNv069 | A | June 26, 2024, 3:52 a.m. | OK | GNU C11 | TESTS | 4 | 77 | 102400 | ||
267453333 | atharvatol04 | A | June 26, 2024, 3:25 a.m. | OK | GNU C11 | TESTS | 4 | 77 | 102400 | ||
267410074 | cp123.mail.123 | A | June 25, 2024, 5:23 p.m. | OK | GNU C11 | TESTS | 4 | 77 | 102400 | ||
267453757 | SadFriedRice | A | June 26, 2024, 3:32 a.m. | OK | Go | TESTS | 4 | 46 | 1024000 | ||
267413224 | SNX03 | A | June 25, 2024, 5:41 p.m. | OK | Go | TESTS | 4 | 46 | 1126400 | ||
267451406 | nguyenquocthao00 | A | June 26, 2024, 2:57 a.m. | OK | Go | TESTS | 4 | 233 | 17612800 | ||
267411313 | 1936557 | A | June 25, 2024, 5:30 p.m. | OK | Haskell | TESTS | 4 | 77 | 0 | ||
267425682 | codeWithDarshan | A | June 25, 2024, 7:22 p.m. | OK | Java 21 | TESTS | 4 | 187 | 614400 | ||
267421739 | Sylvester_ | A | June 25, 2024, 6:45 p.m. | OK | Java 21 | TESTS | 4 | 187 | 614400 | ||
267450725 | minibin | A | June 26, 2024, 2:45 a.m. | OK | Java 21 | TESTS | 4 | 187 | 716800 | ||
267413513 | himneesh9 | A | June 25, 2024, 5:43 p.m. | OK | Java 21 | TESTS | 4 | 250 | 819200 | ||
267445345 | -Jarvis- | A | June 26, 2024, 1:01 a.m. | OK | Java 21 | TESTS | 4 | 264 | 409600 | ||
267454392 | neilchetty | A | June 26, 2024, 3:41 a.m. | OK | Java 21 | TESTS | 4 | 265 | 1228800 | ||
267409777 | cry | A | June 25, 2024, 5:21 p.m. | OK | Java 21 | TESTS | 4 | 265 | 42188800 | ||
267412014 | anshs10 | A | June 25, 2024, 5:34 p.m. | OK | Java 21 | TESTS | 4 | 281 | 921600 | ||
267403017 | rishabh_kakralia | A | June 25, 2024, 4:31 p.m. | OK | Java 21 | TESTS | 4 | 311 | 307200 | ||
267467239 | aditiagrawal | A | June 26, 2024, 5:58 a.m. | OK | Java 21 | TESTS | 4 | 312 | 512000 | ||
267439919 | nis1234 | A | June 25, 2024, 10:51 p.m. | OK | Java 8 | TESTS | 4 | 109 | 0 | ||
267425826 | Sumitsingh7 | A | June 25, 2024, 7:24 p.m. | OK | Java 8 | TESTS | 4 | 155 | 6656000 | ||
267420928 | darkstars_stars | A | June 25, 2024, 6:38 p.m. | OK | Java 8 | TESTS | 4 | 155 | 6656000 | ||
267431248 | etian6795 | A | June 25, 2024, 8:28 p.m. | OK | Java 8 | TESTS | 4 | 156 | 0 | ||
267413737 | nobita1803 | A | June 25, 2024, 5:44 p.m. | OK | Java 8 | TESTS | 4 | 171 | 0 | ||
267411112 | payal_2001 | A | June 25, 2024, 5:29 p.m. | OK | Java 8 | TESTS | 4 | 171 | 0 | ||
267445367 | codesbyayush | A | June 26, 2024, 1:01 a.m. | OK | Java 8 | TESTS | 4 | 202 | 0 | ||
267449498 | alllexey | A | June 26, 2024, 2:24 a.m. | OK | Java 8 | TESTS | 4 | 218 | 0 | ||
267433926 | Farouk-Ashraf | A | June 25, 2024, 9:04 p.m. | OK | Java 8 | TESTS | 4 | 233 | 0 | ||
267422883 | ankeshgupta | A | June 25, 2024, 6:55 p.m. | OK | Java 8 | TESTS | 4 | 233 | 0 | ||
267409237 | khamitov | A | June 25, 2024, 5:18 p.m. | OK | Kotlin 1.7 | TESTS | 4 | 609 | 59392000 | ||
267446882 | nesco | A | June 26, 2024, 1:33 a.m. | OK | Kotlin 1.9 | TESTS | 4 | 202 | 204800 | ||
267451327 | gouravasdeo11 | A | June 26, 2024, 2:55 a.m. | OK | Kotlin 1.9 | TESTS | 4 | 233 | 0 | ||
267412279 | debashish_1 | A | June 25, 2024, 5:35 p.m. | OK | PyPy 3 | TESTS | 4 | 233 | 8089600 | ||
267459049 | maverickYK | A | June 26, 2024, 4:36 a.m. | OK | PyPy 3 | TESTS | 4 | 296 | 8601600 | ||
267424783 | co23btech11003 | A | June 25, 2024, 7:13 p.m. | OK | PyPy 3 | TESTS | 4 | 342 | 8601600 | ||
267465370 | sanjay.garg2072 | A | June 26, 2024, 5:41 a.m. | OK | PyPy 3 | TESTS | 4 | 343 | 8601600 | ||
267404183 | BalusuSubhodhkumar | A | June 25, 2024, 4:33 p.m. | OK | PyPy 3 | TESTS | 4 | 359 | 7168000 | ||
267407830 | Art10em | A | June 25, 2024, 5:13 p.m. | OK | PyPy 3 | TESTS | 4 | 374 | 8704000 | ||
267459066 | gardengnome | A | June 26, 2024, 4:36 a.m. | OK | PyPy 3-64 | TESTS | 4 | 108 | 3379200 | ||
267462605 | __bharat__ | A | June 26, 2024, 5:15 a.m. | OK | PyPy 3-64 | TESTS | 4 | 109 | 4710400 | ||
267413975 | rmr | A | June 25, 2024, 5:46 p.m. | OK | PyPy 3-64 | TESTS | 4 | 124 | 5017600 | ||
267419145 | MassimoG | A | June 25, 2024, 6:23 p.m. | OK | PyPy 3-64 | TESTS | 4 | 125 | 6348800 | ||
267410776 | bergus | A | June 25, 2024, 5:27 p.m. | OK | PyPy 3-64 | TESTS | 4 | 139 | 4608000 | ||
267452273 | MdAbedin | A | June 26, 2024, 3:10 a.m. | OK | PyPy 3-64 | TESTS | 4 | 139 | 5836800 | ||
267415500 | NitroSpear | A | June 25, 2024, 5:56 p.m. | OK | PyPy 3-64 | TESTS | 4 | 140 | 4198400 | ||
267446358 | RobinFromTheHood | A | June 26, 2024, 1:21 a.m. | OK | PyPy 3-64 | TESTS | 4 | 140 | 5529600 | ||
267446783 | burnerboy13 | A | June 26, 2024, 1:31 a.m. | OK | PyPy 3-64 | TESTS | 4 | 140 | 137216000 | ||
267460820 | D4D5C4 | A | June 26, 2024, 4:56 a.m. | OK | PyPy 3-64 | TESTS | 4 | 155 | 5120000 | ||
267441925 | hs2470gm | A | June 25, 2024, 11:37 p.m. | OK | Python 3 | TESTS | 4 | 77 | 0 | ||
267463183 | veera_teja_007 | A | June 26, 2024, 5:21 a.m. | OK | Python 3 | TESTS | 4 | 108 | 0 | ||
267452762 | Brackets12 | A | June 26, 2024, 3:17 a.m. | OK | Python 3 | TESTS | 4 | 108 | 0 | ||
267448326 | abdulrehmanikram9 | A | June 26, 2024, 2:02 a.m. | OK | Python 3 | TESTS | 4 | 108 | 0 | ||
267414530 | K-Marjona | A | June 25, 2024, 5:49 p.m. | OK | Python 3 | TESTS | 4 | 108 | 0 | ||
267410363 | Rohidul | A | June 25, 2024, 5:24 p.m. | OK | Python 3 | TESTS | 4 | 108 | 0 | ||
267409979 | VJaanv | A | June 25, 2024, 5:22 p.m. | OK | Python 3 | TESTS | 4 | 108 | 0 | ||
267405347 | manasthiruveedhula | A | June 25, 2024, 4:34 p.m. | OK | Python 3 | TESTS | 4 | 108 | 0 | ||
267458470 | sjpremkumar | A | June 26, 2024, 4:30 a.m. | OK | Python 3 | TESTS | 4 | 109 | 0 | ||
267436566 | bbjohn834 | A | June 25, 2024, 9:44 p.m. | OK | Python 3 | TESTS | 4 | 109 | 0 | ||
267415894 | mash97 | A | June 25, 2024, 5:59 p.m. | OK | Ruby 3 | TESTS | 4 | 312 | 204800 | ||
267442321 | 0x81 | A | June 25, 2024, 11:47 p.m. | OK | Ruby 3 | TESTS | 4 | 359 | 1638400 | ||
267414768 | cottoncotton | A | June 25, 2024, 5:51 p.m. | OK | Rust 2021 | TESTS | 4 | 30 | 0 | ||
267440049 | strokeme | A | June 25, 2024, 10:53 p.m. | OK | Rust 2021 | TESTS | 4 | 62 | 0 | ||
267434348 | demmax0512 | A | June 25, 2024, 9:10 p.m. | OK | Rust 2021 | TESTS | 4 | 62 | 0 | ||
267466420 | strokeme | A | June 26, 2024, 5:51 a.m. | OK | Rust 2021 | TESTS | 4 | 77 | 0 |
Back to search problems