题解列表

筛选

编写题解 3040: An Easy Problem

摘要:解题思路:就那样注意事项:参考代码:#include <stdio.h>#include <stdbool.h>int js(int i) {    int t = 0;    while (i > ……

题解 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……