题解列表

筛选

2772:苹果与虫子

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

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

摘要:解题思路:注意事项:参考代码:#includeint main(){ int n,m=0,a=12,x=0;//m表示每个月剩下的钱,n表示每个月的预算花费,x表示给妈妈的钱 while(a--) {……

3074: 计算(calc)

摘要:参考代码: ```cpp #include using namespace std; stacknum;//存储数字 stackch;//存储字符 string str;//定义字符串 ……

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

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

雇佣兵(while循环)

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