Дата активности | Видеокурс | Прогресс | ||
---|---|---|---|---|
2022-12-09 | soft0 | Демо софт | 58 % | |
Итого: | 50 % |
Дата активности | Консольный раздел | Прогресс | ||
---|---|---|---|---|
2022-11-18 | book | 001. Числа | 38 % | |
2022-10-02 | book | 000. Строки | 100 % | |
Итого: | 69 % |
Добрый день! У кого нибудь есть проблемы с проверкой задачи? Пишет что робот шарп медитирует
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
string[] subs = s1.Split(' ');
s1 = s1.Insert((subs[0].Length + 1), (s2 + " "));
Console.WriteLine(s1);
string s = Console.ReadLine();
string[] subs = s.Split(' ', '.', ',', ':', ';', '!', '?', '-');
int l = 0;
foreach(var i in subs)
{
if (i.Length > l) l = i.Length;
}
Console.WriteLine(l);
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
Console.WriteLine(String.Compare(s1, s2));
Console.WriteLine(String.Compare(s1, s2, true));