题解列表

筛选

题解 2000: 偶数列举

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int i,n;    cin>>n;    for……

题解 2000: 偶数列举

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){    int a;    cin>>a;    for(int i=……

病毒virus(拓扑排序)

摘要:解题思路:单词依字典序排列, 因此可以判断单词中字符是否存在拓扑序, 如果存在, 则遍历病毒字符串中的字符, 如果每一个字符都存在映射的索引, 则依照索引0 为‘a’ 依次输出, 否则输出0;注意事项……

题解 2799: 奥运奖牌计数

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int a,b,c,n,sum=0,sum1=0,s……

数1的个数,题目短吗

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int i,n,c,y,x,h;    int count=0,b=0;    scanf("%d",&n……

1147: C语言训练-角谷猜想

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    long long aj;    cin>>aj; ……