题解列表

筛选

3010: 奇偶数之和(超简单)

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

2794: 求平均年龄

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

排队打水问题贪心求解

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N = 510; in……

面向结果编程

摘要: #include using namespace std; typedef struct fff { int num; int……

111111111111111111111111111111111111

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

N以内累加求和 2544

摘要:解题思路:#include<bits/stdc++.h>using namespace std;int n;int main(){cin>>n;int s=(1+n)*n/2;cout<<s;}注意事……

1040: [编程入门]实数的打印

摘要:解题思路:注意事项:注意输出结束有空格参考代码:n = float(input())for i in range(1, 4):    print(("{:6.2f}".format(n)) * i, ……