题解列表

筛选

机器翻译(队列写法)

摘要:解题思路:按照队列的思想依次引入单词,并附加st来记录单词是否已经学过。注意事项:参考代码:#include<iostream>#include<algorithm>#include<queue>#i……

很简单的python代码

摘要:解题思路:注意事项:参考代码:for i in range(2,1000):    total_sum = 0    array1 = list(str(i))    for digit in arr……

[编程入门]阶乘求和

摘要:解题思路:                t记录算出的当前数的阶乘,(n-1)!*n=n!    s是各个数的阶乘的和。     注意事项:  注意结果类型,不要溢出。参考代码:         

1042题 :电报加密

摘要:# 自己写的代码 ```c #include #include int main() { char a[20]; gets(a); int len; len=strlen……

懒人求解法

摘要:解题思路:数组快速计算结果注意事项:数组不要越界访问参考代码:#include<stdio.h>int main(){    int a[9],b;    for(b=0;b<9;b++)    { ……