While Mahmoud and Ehab were practicing for IOI, they found a problem which name was Longest common subsequence. They solved it, and then Ehab challeng
转载
2017-07-26 01:11:00
77阅读
2评论
Mahmoud wrote a message s of length n. He wants to send it as a birthday present to his friend Moaz who likes strings. He wrote it on a magical paper
转载
2017-07-26 01:22:00
101阅读
2评论
Mahmoud has n line segments, the i-th of them has length ai. Ehab challenged him to use exactly 3 line segments to form a non-degenerate triangle. Mah
转载
2017-07-26 01:14:00
150阅读
2评论
Mahmoud and Ehab live in a country with n cities numbered from 1 to n and connected by n - 1 undirected roads. It's guaranteed that you can reach any
转载
2017-07-26 01:43:00
83阅读
2评论
Mahmoud wants to write a new dictionary that contains n words and relations between them. There are two types of relations: synonymy (i. e. the two wo
转载
2017-07-26 01:32:00
122阅读
2评论
题目链接:http://codeforces.com/contest/766A. Mahmoud and Longest Uncommon Subsequence解法:水题,如果两个字符串不完全一样的话,最长不同子串肯定是其中最长的字符串。#include <bits/stdc++.h>using namespace std;int main(){ string a,b;
原创
2022-04-19 10:26:14
68阅读
A. Mahmoud and Longest Uncommon Subsequence time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard out
转载
2017-02-17 15:54:00
98阅读
2评论
Problem K. Alice's PianoDescriptionAlice has a piano which can plays nice music, but it's different from otherpianos. It has two rows of keys, and the method of playing it is also quitespecial
原创
2023-09-15 09:43:37
56阅读
题目链接:这里 题意 : 问你能否从n个数字中抽出来三个,使得可以构成不退化的三角形。 解法 : 只要排个序,然后判断a[
原创
2022-04-19 14:21:09
57阅读
B. Mahmoud and a Triangle 题目连接: http://codeforces.com/contest/766/problem/B Description Mahmoud has n line segments, the i th of them has length ai. E
原创
2021-07-15 14:53:02
343阅读
C. Mahmoud and a Message 题目连接: http://codeforces.com/contest/766/problem/C Description Mahmoud wrote a message s of length n. He wants to send it as a
原创
2021-07-15 14:53:01
67阅读
Problem K. Alice's PianoDescriptionAlice has a piano which can plays nice music, but it's different from otherpianos. It has two rows of keys, and the method of playing it is also quitespecial. When Alice plays piano, she has to put her two hands on the leftsideof the two rows of keys respec
转载
2012-03-24 19:39:00
520阅读
2评论
C. Mahmoud and a Messagetime limit per test2 secondsmemory limitandard inputoutputstandard outputMahmoud wrote a message s of lengt
原创
2022-08-11 17:03:10
67阅读
原题链接D. Mahmoud and a Dictionarytime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMahmoud wan
原创
2023-06-12 17:22:12
54阅读
D. Mahmoud and a Dictionarytime limnputstandard inputoutputstandard outputMahmoud wants to write a new di
原创
2022-08-11 17:02:27
60阅读
C++的实现:
1 class Solution {
2 public:
3 int maxRotateFunction(vector<int>& A) {
4 long N = A.size();
5 long S = 0;
6 long t = 0;
7 for (int i = 0;
转载
2020-04-09 10:43:00
32阅读
2评论
Which of the following are not fundamental tasks of the Support Workbench? (Choose all that apply.)A. View long-running SQL workloadsB. View problem d
转载
2017-11-13 18:03:00
32阅读
2评论
D. Mahmoud and a Dictionary 题目连接: http://codeforces.com/contest/766/problem/D Description Mahmoud wants to write a new dictionary that contains n word
原创
2021-07-15 14:53:00
142阅读
A. Mahmoud and Longest Uncommon Subsequence 题目连接: http://codeforces.com/contest/766/problem/A Description While Mahmoud and Ehab were practicing for I
原创
2021-07-15 14:53:03
144阅读
题目链接:这里 Mahmoud wrote a message s of length n. He wants to send it as a birthday present to his friend Moaz who likes strings. He wrote it on a magical paper but he was surprised because some characte
原创
2022-04-19 14:19:16
59阅读