Codeforces
文章平均质量分 89
Cf做题记录
指间理想
这里没有简介~
展开
-
Codeforces Round #741 (Div. 2)
Codeforces Round #741 (Div. 2)(https://codeforces.com/contest/1562)A. The Miracle and the Sleeper(https://codeforces.com/contest/1562/problem/A)You are given two integers l and r, l≤r. Find the largest possible value of amodb over all pairs (a,b) of inte原创 2021-08-29 14:08:00 · 211 阅读 · 0 评论 -
Codeforces Round #740 (Div. 2, based on VK Cup 2021 - Final (Engine))
Codeforces Round #740 (Div. 2, based on VK Cup 2021 - Final (Engine))(https://codeforces.com/contest/1561)一边被折磨一边打代码A. Simply Strange Sort (https://codeforces.com/contest/1561/problem/A)You have a permutation: an array a=[a1,a2,…,an] of distinct integer原创 2021-08-28 16:08:12 · 262 阅读 · 0 评论 -
Codeforces Round #739 (Div. 3)
Codeforces Round #739 (Div. 3)(http://codeforces.com/contest/1560)A. Dislike of Threes(http://codeforces.com/contest/1560/problem/A)Polycarp doesn’t like integers that are divisible by 3 or end with the digit 3 in their decimal representation. Integers t原创 2021-08-21 15:18:12 · 252 阅读 · 0 评论 -
Codeforces Round #738 (Div. 2)
Codeforces Round #738 (Div. 2)(http://codeforces.com/contest/1559)A. Mocha and Math(http://codeforces.com/contest/1559/problem/A)Mocha is a young girl from high school. She has learned so much interesting knowledge from her teachers, especially her math原创 2021-08-19 16:20:56 · 296 阅读 · 0 评论 -
Codeforces Round #736 (Div. 2)(A~C)
Codeforces Round #736 (Div. 2)A. Gregor and Cryptography(https://codeforces.com/contest/1549/problem/A)Gregor is learning about RSA cryptography, and although he doesn’t understand how RSA works, he is now fascinated with prime numbers and factoring them原创 2021-08-02 15:05:21 · 247 阅读 · 0 评论 -
Codeforces Round #735 (Div. 2)(A~D)
A. Cherry(https://codeforces.com/contest/1554/problem/A)You are given n integers a1,a2,…,an. Find the maximum value of max(al,al+1,…,ar)⋅min(al,al+1,…,ar) over all pairs (l,r) of integers for which 1≤l<r≤n.InputThe first line contains a single intege原创 2021-07-30 13:59:10 · 496 阅读 · 0 评论 -
Codeforces Global Round 15(A~D)
Codeforces Global Round 15(https://codeforces.com/contest/1552)A. Subsequence Permutation(题目链接:https://codeforces.com/contest/1552/problem/A)A string s of length n, consisting of lowercase letters of the English alphabet, is given.You must choose some n原创 2021-07-27 15:34:35 · 288 阅读 · 0 评论 -
Educational Codeforces Round 108 [Rated for Div. 2](前三题)
A.Red and Blue BeansYou have r red and b blue beans. You’d like to distribute them among several (maybe, one) packets in such a way that each packet:has at least one red bean (or the number of red beans ri≥1);has at least one blue bean (or the number of原创 2021-04-30 00:59:23 · 125 阅读 · 3 评论 -
Codeforces Round #720 (Div. 2)AB题
Codeforces Round #720 (Div. 2)AB题A. Nastia and Nearly Good NumbersNastia has 2 positive integers A and B. She defines that:The integer is good if it is divisible by A⋅B;Otherwise, the integer is nearly good, if it is divisible by A.For example, if A=6原创 2021-05-08 15:39:48 · 247 阅读 · 0 评论 -
Codeforces Global Round 14(A~D)
Codeforces Global Round 14A. Phoenix and Goldtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPhoenix has collected n pieces of gold, and he wants to weigh them together so he can feel rich. The i-原创 2021-05-08 22:48:05 · 224 阅读 · 1 评论