病毒virus(拓扑排序) 摘要:解题思路:单词依字典序排列, 因此可以判断单词中字符是否存在拓扑序, 如果存在, 则遍历病毒字符串中的字符, 如果每一个字符都存在映射的索引, 则依照索引0 为‘a’ 依次输出, 否则输出0;注意事项…… 题解列表 2024年01月08日 1 点赞 0 评论 334 浏览 评分:6.0
28行代码解决 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { int n; cin >> n; int a[1…… 题解列表 2024年01月08日 0 点赞 0 评论 466 浏览 评分:9.9
1048: [编程入门]自定义函数之字符串拷贝 摘要:解题思路:注意事项:简单参考代码:n = int(input())s = input()m = int(input())print(s[m - 1:])…… 题解列表 2024年01月08日 0 点赞 0 评论 150 浏览 评分:0.0
1040: [编程入门]实数的打印 摘要:解题思路:注意事项:注意输出结束有空格参考代码:n = float(input())for i in range(1, 4): print(("{:6.2f}".format(n)) * i, …… 题解列表 2024年01月08日 0 点赞 0 评论 232 浏览 评分:0.0
2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i,n,sum; sum=1; …… 题解列表 2024年01月08日 0 点赞 0 评论 231 浏览 评分:9.9
1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i,n,sum; sum=1; …… 题解列表 2024年01月08日 0 点赞 0 评论 232 浏览 评分:9.9
1151:C语言训练-计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; int s…… 题解列表 2024年01月08日 0 点赞 0 评论 205 浏览 评分:9.9
1151: C语言训练-计算一个整数N的阶乘1151: C语言训练-计算一个整数N的阶乘1151: C语言训练-计算一个整数N的阶乘1151: C语言训练-计算一个整数N的阶乘1151: C语言训练- 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int i,N,s=1; cin>>N; for(…… 题解列表 2024年01月08日 0 点赞 0 评论 259 浏览 评分:9.9
N以内累加求和 2544 摘要:解题思路:#include<bits/stdc++.h>using namespace std;int n;int main(){cin>>n;int s=(1+n)*n/2;cout<<s;}注意事…… 题解列表 2024年01月08日 0 点赞 0 评论 191 浏览 评分:0.0
2544: N以内累加求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; int s…… 题解列表 2024年01月08日 1 点赞 0 评论 224 浏览 评分:10.0