首页 > 年轻人不讲5的
头像 ciallobite
发表于 2025-05-31 00:40:53
s = list(input()) n = len(s) for i in range(n): if(s[i] == '5'): s[i] = '*' print(''.join(s))
头像 牛客755299648号
发表于 2025-07-22 23:26:12
#include <stdio.h> #include<stdlib.h> int main() { int c=0; char* str=(char*)malloc(1); if(NULL==str){ return -1; 展开全文
头像 深藏功与名的懒羊羊很贴心
发表于 2025-07-07 22:27:00
#include <iostream> using namespace std; int main() { string a; cin>>a; for (char& c:a) { if (c=='5') { 展开全文
头像 牛客363889878号
发表于 2025-06-19 15:27:12
#include <iostream> #include <string> using namespace std; int main() { string s; getline(cin, s); for(auto &c : s ) 展开全文
头像 找不到工作啊__
发表于 2025-07-31 22:51:33
#include <stdio.h> int main() { char str[1000001]; int i=0; scanf("%s",str); while(str[i]!='\0') { if(str 展开全文
头像 用心的猕猴桃不讲武德
发表于 2025-08-21 11:55:21
#正则表达式 import re s = input() s =re.sub(r'5',"*",s) print(s)
头像 智zhi
发表于 2025-09-28 19:19:53
#include <iostream> #include <string> #include <vector> using namespace std; int main() { string a; cin >>a; for 展开全文
头像 壹壹风荷举
发表于 2025-09-07 17:55:34
str1=input().strip() strlist=['*' if char=='5'else char for char in str1] print("".join(strlist))
头像 壹壹风荷举
发表于 2025-09-07 17:56:46
str1=input().strip() str2=str1.replace('5','*') print(str2)
头像 GB279824
发表于 2025-06-07 23:18:55
s = list(map(str, input().strip())) for i in range(len(s)): if s[i] == '5': s[i] = '*' print("".join(s))