2851: 合法C标识符 摘要:解题思路:注意事项:参考代码:s = input()s = s.replace("_",'a')if s[0].isdigit(): print("no")elif not s.…… 题解列表 2024年08月01日 0 点赞 0 评论 397 浏览 评分:0.0
3行:万花丛中过,片叶不沾身 摘要:解题思路:................>>.........。》。。》。。。。。。。。。。。。。。。注意事项:参考代码:a=int(input())b=int(input())print(a-b)…… 题解列表 2024年08月01日 0 点赞 0 评论 266 浏览 评分:0.0
2850: 输出亲朋字符串 摘要:解题思路:注意事项:参考代码:s1 = input()s2 = s1[1::1]s2 = s2 + s1[0]s = ""for i in range(len(s1)): s += chr(or…… 题解列表 2024年08月01日 0 点赞 0 评论 611 浏览 评分:0.0
3行:万花丛中过,片叶不沾身 摘要:```python a=int(input()) b=int(input()) print(a+b) ``` 因为我也曾经站在门外 女孩 我的故事因为你而展开 。。。。。。。 。。。…… 题解列表 2024年08月01日 0 点赞 1 评论 784 浏览 评分:0.0
2849: 石头剪子布 摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n): a,b = input().split() if (a=='Rock'a…… 题解列表 2024年08月01日 1 点赞 0 评论 685 浏览 评分:0.0
练练浮点数二分吧 摘要:#include<bits/stdc++.h>//浮点数二分 using namespace std; int main() { double x; cin>>x; double l…… 题解列表 2024年08月01日 0 点赞 0 评论 414 浏览 评分:0.0
模块化(自定义函数)验证角谷猜想 摘要:解题思路:角谷猜想:任给一个自然数,若为偶数除以2,若为奇数则乘3加1,得到一个新的自然数后按照上面的法则继续演算,若干次后得到的结果必然为1。从这句话可以看出,只有当新的自然数为1时,才会停止循环。…… 题解列表 2024年08月01日 0 点赞 0 评论 202 浏览 评分:0.0
不要使用scanf函数,因为scanf不存储空格 摘要:这道题我最开始使用scanf输入,然后提交只能过50% ```c #include #include #include int cmp(const void *a,const void…… 题解列表 2024年08月01日 0 点赞 0 评论 368 浏览 评分:0.0
2848: 基因相关性 摘要:解题思路:注意事项:参考代码:n = float(input())a = input()b = input()c = 0for i,j in zip(a,b): if i == j: …… 题解列表 2024年08月01日 0 点赞 0 评论 465 浏览 评分:0.0
哥德巴赫猜想++++++++++++++++那我可要好好想一想 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> // 引入数学库,用于sqrt函数 int main() { …… 题解列表 2024年08月01日 0 点赞 0 评论 194 浏览 评分:9.9