题解列表

筛选

2803: 整数的个数

摘要:解题思路:注意事项:参考代码:a1 = a5 = a10 = 0k = int(input())l = list(map(int,input().split()))for i in l:    if ……

2749: Hello, World!(C++代码)

摘要:解题思路:直接输出即可注意事项:1.用英语符号              2.逗号后面有一个空格              3.注意大小写参考代码:#include<iostream>using na……

3060: 合并石子

摘要:## # 合并石子 #### ### 区间dp ------------ ##### 解题思路: ------------ f(i,j)表示将从第i堆石子到第j堆石子……

合法的标识符

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int i=0;    int flag;    char a[30];    gets(a);//接收字……

1000: [竞赛入门]简单的a+b

摘要:参考代码:#include<iostream>using namespace std;int main(){    int a,b;    while(cin>>a>>b)cout<<(a+b)<<e……

津津的储蓄计划(简单明了)

摘要:解题思路:输出格式用%d时,不能用(存钱总数*1.2+12月份直接表示,因为它是实数型),要转换类型,才能得到正确结果。注意事项:参考代码:#include<stdio.h>int main(){  ……

短信计费C语言解答

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