题解列表
好数 基本思想简单易懂(C语言)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>//切勿随意抄袭,若需引用请标明作者int is_good_num(int num) ……
sort练习---python
摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())l=list(map(int,input().split())) #要把列表中的数设为Int型,才能适应sort(……
信息学奥赛一本通T1499-最短路计数 堆优化+dijkstra
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"usingnamespacestd;#definell&nb……
1051: [编程入门]结构体之成绩统计2
摘要:```c#include struct student{ char id[100]; char name[100]; int a; int b; int c;}; ……
考虑质数与非质数两种情况即可
摘要:只能切下质数长度的木段,且1和0直接判断先手的人输,不妨直接设置一个数组a[100010]来表示结果,1.输入n,若n为质数,a[n]=1;2.若n不是质数,我们就需要考虑比n小的质数,如果有……
一目了然- 亲和数用while、for
摘要:解题思路:注意事项:参考代码:#include<iostream>usingnamespacestd;intmain(){ int&nb……
1049: [编程入门]结构体之时间设计
摘要:```c#include struct Data{ int year; int month; int day;}; int main() { struct……