题解列表

筛选

26行代码暴力解决-C语言

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() {     int arr[6][6];     int n = 0;     int i,j;  ……

2772:苹果与虫子

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

津津的储蓄计划(一个while解法)

解题思路:注意事项:参考代码:#includeintmain(){intn,m=0,a=12,x=0;//m表示每个月剩下的钱,n表示每个月的预算花费,x表示给妈妈的钱while(a--){scanf("%d",&n);m=300+m-n;if(m<0){printf("%d",

3074: 计算(calc)

参考代码:```cpp#includeusingnamespacestd;stacknum;//存储数字stackch;//存储字符stringstr;//定义字符串voidoutput(){//输出栈,用于测试while(!num.empty()){cout

编写题解:数的读法【Python】

摘要:解题思路:每四位分开读,具体见代码和注释参考代码:d = {&#39;1&#39;:&#39;yi&#39;, &#39;2&#39;:&#39;er&#39;, &#39;3&#39;:&#39;s……