题解列表

筛选

[编程入门]水仙花数判断

摘要:解题思路:将三位数每一位分离出来是重点注意事项:参考代码:for i in range(100,1000):    a=i%10    b=(i%100)/10    c=i/100    if i=……

模拟过程,注意判断条件

摘要:解题思路:注意事项:参考代码:T = int(input()) for _ in range(T):     n = int(input())     matrix = [list(inpu……

for循环实现,12行代码

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

数据结构-链表的基本操作

摘要:注意: 别用gets()来获取字符串,不然会跑不通 代码:按模块编写函数即可 #include #include #include int l……

1097: 蛇行矩阵

摘要:```java public class _1097_蛇行矩阵 { public static void main(String[] args) { Scanner scanner=new……

运用循环小数的特点

摘要:解题思路:该题就是运用循环小数的特点:纯循环小数转化为分数:如0.4285742857…找到循环体42857,该循环体有5位,故而0.4285742857…就是42857/99999,这里有5个9这个……