Codeforce-String Task 算法竞赛Codeforce 算法竞赛 Codeforce 算法竞赛 Codeforce 1000 算法竞赛 Codeforce 1000 更新于:Apr 2, 2025 题目描述 思路代码Python1234567891011121314word = input()V = ["A", "O", "Y", "E", "U", "I"]# deletes all the vowelsword = ''.join(c for c in word if c.upper() not in V)# replaces all uppercase consonants with corresponding lowercase ones.word = word.lower()# inserts a character "." before each consonant,word = ''.join('.' + c for c in word)print(word) 优化: 12345word = input()V = ["A", "O", "Y", "E", "U", "I"]print(''.join('.' + c.lower() for c in word if c.upper() not in V)) C1 C++1 发布于:Mar 26, 2025 C++ 入门 Hello World老规矩还是先见识一下输出“Hello World!”: 12345678#include <iostream>using namespace std;int m... Codeforce Next Round 题目描述 思路先统计前 k 个分数中大于 0 的数量。因为分数是递减排列的,只需继续统计从第 k 个位置开始,所有与第 k 个分数相等的连续分数个数。最后的总合就是结果。 代码Python123...