problem_id stringlengths 24 61 | question stringlengths 581 4.52k | solutions dict | difficulty int64 7 15 | url int64 2 2 | starter_code stringclasses 1
value | input_output stringlengths 397 12.7M |
|---|---|---|---|---|---|---|
CodeContests/1548_C. The Three Little Pigs | "Three little pigs from all over the world are meeting for a convention! Every minute, a triple of 3(...TRUNCATED) | {"language":[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2(...TRUNCATED) | 9 | 2 | NONE | "{\"inputs\": [\"2 3\\n1\\n5\\n6\\n\", \"5 4\\n2\\n4\\n6\\n8\\n\", \"1 3\\n1\\n2\\n3\\n\", \"3 9\\n1(...TRUNCATED) |
CodeContests/1548_D1. Gregor and the Odd Cows (Easy) | "This is the easy version of the problem. The only difference from the hard version is that in this (...TRUNCATED) | {"language":[2,2,2,2,2,2,2,2,3,2,2,2,3,2,2,2,2,2,2,2,2,2,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2(...TRUNCATED) | 10 | 2 | NONE | "{\"inputs\": [\"5\\n0 0\\n2 16\\n30 14\\n4 6\\n2 10\\n\", \"3\\n0 0\\n2 0\\n0 4\\n\", \"20\\n200 71(...TRUNCATED) |
CodeContests/1548_D2. Gregor and the Odd Cows (Hard) | "This is the hard version of the problem. The only difference from the easy version is that in this (...TRUNCATED) | {"language":[2,2,2,2,2,2,2,2,2,2,2,2,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,4,2,2,2,2,2,2,2,2,2,2,2,2,2(...TRUNCATED) | 10 | 2 | NONE | "{\"inputs\": [\"10\\n170 59\\n129 54\\n5 98\\n129 37\\n58 193\\n154 58\\n24 3\\n13 138\\n136 144\\n(...TRUNCATED) |
CodeContests/1548_E. Gregor and the Two Painters | "Two painters, Amin and Benj, are repainting Gregor's living room ceiling! The ceiling can be modele(...TRUNCATED) | {"language":[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2(...TRUNCATED) | 11 | 2 | NONE | "{\"inputs\": [\"3 4 12\\n9 8 5\\n10 6 7 2\\n\", \"3 4 11\\n9 8 5\\n10 6 7 2\\n\", \"5 23 6\\n1 4 3 (...TRUNCATED) |
CodeContests/1549_A. Gregor and Cryptography | "Gregor is learning about RSA cryptography, and although he doesn't understand how RSA works, he is (...TRUNCATED) | {"language":[2,4,4,2,4,2,2,4,4,3,1,2,4,4,2,3,2,4,3,2,2,4,2,3,3,2,4,4,3,4,4,4,3,3,4,2,4,4,4,2,3,2,3,3(...TRUNCATED) | 7 | 2 | NONE | "{\"inputs\": [\"2\\n17\\n5\\n\", \"2\\n17\\n5\\n\", \"1\\n55439\\n\", \"5\\n5\\n7\\n11\\n13\\n19\\n(...TRUNCATED) |
CodeContests/1549_B. Gregor and the Pawn Game | "There is a chessboard of size n by n. The square in the i-th row from top and j-th column from the (...TRUNCATED) | {"language":[3,2,3,3,3,3,4,2,4,3,3,4,4,3,3,3,4,3,2,3,4,4,4,3,4,3,4,3,2,4,3,4,2,3,4,2,4,3,3,4,3,4,2,2(...TRUNCATED) | 8 | 2 | NONE | "{\"inputs\": [\"4\\n3\\n000\\n111\\n4\\n1111\\n1111\\n3\\n010\\n010\\n5\\n11001\\n00000\\n\", \"1\\(...TRUNCATED) |
CodeContests/1549_C. Web of Lies | "When you play the game of thrones, you win, or you die. There is no middle ground.\n\nCersei Lannis(...TRUNCATED) | {"language":[4,3,2,3,4,2,3,2,2,3,3,4,4,3,2,4,3,2,4,4,3,4,3,2,4,2,4,3,4,2,2,4,2,3,3,3,2,4,4,2,4,3,2,3(...TRUNCATED) | 9 | 2 | NONE | "{\"inputs\": [\"4 3\\n2 1\\n1 3\\n3 4\\n4\\n3\\n1 2 3\\n2 3 1\\n3\\n\", \"4 3\\n2 3\\n3 4\\n4 1\\n1(...TRUNCATED) |
CodeContests/1549_D. Integers Have Friends | "British mathematician John Littlewood once said about Indian mathematician Srinivasa Ramanujan that(...TRUNCATED) | {"language":[4,2,2,1,4,4,2,4,3,3,4,3,3,3,4,4,4,3,4,2,1,3,3,3,2,3,4,2,2,4,2,4,4,4,3,2,4,3,3,3,4,3,4,3(...TRUNCATED) | 10 | 2 | NONE | "{\"inputs\": [\"4\\n5\\n1 5 2 4 6\\n4\\n8 2 5 10\\n2\\n1000 2000\\n8\\n465 55 3 54 234 12 45 78\\n\(...TRUNCATED) |
CodeContests/1551_A. Polycarp and Coins | "Polycarp must pay exactly n burles at the checkout. He has coins of two nominal values: 1 burle and(...TRUNCATED) | {"language":[3,2,4,2,3,4,2,2,2,4,3,2,3,3,2,2,2,4,2,4,4,3,3,3,3,3,2,3,3,2,3,3,3,1,4,2,3,2,4,2,2,4,4,3(...TRUNCATED) | 7 | 2 | NONE | "{\"inputs\": [\"6\\n1000\\n30\\n1\\n32\\n1000000000\\n5\\n\", \"1\\n10111\\n\", \"1\\n10555\\n\", \(...TRUNCATED) |
CodeContests/1551_B1. Wonderful Coloring - 1 | "This is a simplified version of the problem B2. Perhaps you should read the problem B2 before you s(...TRUNCATED) | {"language":[4,3,3,4,2,3,3,4,3,4,4,2,3,3,3,2,2,4,3,2,2,3,2,2,2,4,4,2,2,3,3,4,2,3,3,3,3,4,2,4,2,4,4,4(...TRUNCATED) | 8 | 2 | NONE | "{\"inputs\": [\"5\\nkzaaa\\ncodeforces\\narchive\\ny\\nxxxxxx\\n\", \"1\\ndscnjksdcnsjkvndfjkvndfjk(...TRUNCATED) |
End of preview. Expand in Data Studio
- Downloads last month
- 342