1932B-ChayaCalendar.cpp 1932C-LRremainders.cpp 1933A-TurtlePuzzleRearrangeAndNegate.cpp 1933B-TurtleMathFastThreeTask.cpp 1933C-TurtleFingersCountTheValuesOfk.cpp 1933D-TurtleTenacityContinualMods.cpp 1934A-TooMinTooMax.cpp 1934B-YetAnotherCoinProblem.cpp 1935A-EntertainmentInMAC.cpp 1935B-Informatic...
64839e6· Jul 26, 2024 HistoryHistory File metadata and controls Code Blame 18 lines (14 loc) · 354 Bytes Raw #include <cstdio> int main(){ long t; scanf("%ld", &t); while(t--){ long n, k; scanf("%ld %ld", &n, &k); if(!k){puts("0"); continue;} k -= n; lon...
2cd4305· Jul 2, 2024 HistoryHistory File metadata and controls Code Blame 22 lines (17 loc) · 473 Bytes Raw #include <iostream> int main(){ std::ios_base::sync_with_stdio(false); long t; std::cin >> t; while(t--){ long n, m; std::cin >> n >> m; std::string s;...
1932B-ChayaCalendar.cpp 1932C-LRremainders.cpp 1933A-TurtlePuzzleRearrangeAndNegate.cpp 1933B-TurtleMathFastThreeTask.cpp 1933C-TurtleFingersCountTheValuesOfk.cpp 1933D-TurtleTenacityContinualMods.cpp 1934A-TooMinTooMax.cpp 1934B-YetAnotherCoinProblem.cpp 1935A-EntertainmentInMAC.cpp 1935B-Informatic...
a97161d· Jul 7, 2024 HistoryHistory File metadata and controls Code Blame 11 lines (8 loc) · 161 Bytes Raw #include <cstdio> int main(){ long t; scanf("%ld", &t); while(t--){ long n; scanf("%ld", &n); printf("%d\n", n == 3 ? 3 : 2); } } 1 2 3 4 5 6...
8eb08ef· Aug 13, 2024 HistoryHistory File metadata and controls Code Blame 15 lines (12 loc) · 327 Bytes Raw #include <cstdio> #include <vector> int main(){ long t; scanf("%ld", &t); while(t--){ long n; scanf("%ld", &n); std::vector<long> v(n); for(long p = ...
1ad6302· Sep 22, 2024 HistoryHistory File metadata and controls Code Blame 17 lines (14 loc) · 403 Bytes Raw #include <iostream> #include <vector> const std::string s("aeiou"); int main(){ std::ios_base::sync_with_stdio(false); long t; std::cin >> t; while(t--){ long...
faea7bb· Jul 8, 2024 HistoryHistory File metadata and controls Code Blame 23 lines (18 loc) · 547 Bytes Raw #include <iostream> typedef long long ll; int main(){ std::ios_base::sync_with_stdio(false); ll t; std::cin >> t; while(t--){ ll n, m; std::cin >> n >> ...
1780A-HayatoAndSchool.cpp 1780B-GCDPartition.cpp 1781A-ParallelProjection.cpp 1781B-GoingToTheCinema.cpp 1783A-MakeItBeautiful.cpp 1783B-MatrixOfDifferences.cpp 1784A-MonstersEasyVersion.cpp 1784B-LetterExchange.cpp 1786A1-NonAlternatingDeckEasyVersion.cpp 1786A2-AlternatingDeckHardVersion.cpp 1787A-...
2024C-ConcatenationOfArrays.cpp 2025A-TwoScreens.cpp 2025B-BinomialCoefficientsKindOf.cpp 2026A-PerpendicularSegments.cpp 2027A-RectangleArrangement.cpp 2027B-StalinSort.cpp 2028A-AlicesAdventuresInChess.cpp 2028B-AlicesAdventuresInPermuting.cpp 2029A-Set.cpp 2029B-Replacement.cpp 2030A-AGiftFromOrangu...