1174: 计算直线的交点数 摘要:```cpp #include using namespace std; int main() { int n,s,i; while(cin>>n) { …… 题解列表 2022年11月18日 0 点赞 0 评论 437 浏览 评分:0.0
C语言 带参数宏定义练习& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define exchange(a,b) int t;t = a; a = b; b = tint main(){ i…… 题解列表 2022年11月18日 0 点赞 0 评论 280 浏览 评分:0.0
next_permutation全排序 摘要:```cpp #include //next_permutation全排序 using namespace std; int main() { int n,len=0; cin>…… 题解列表 2022年11月18日 0 点赞 0 评论 346 浏览 评分:0.0
1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码: int a=1; int n; int t=0; scanf("%d", &n); for (int i = 1; i <= n; i++) { t = 0;//防止…… 题解列表 2022年11月19日 0 点赞 0 评论 278 浏览 评分:0.0
自守数问题之满满的套路(格式+数据范围) 摘要:解题思路: 题前小磕:这一题真是满满的套路啊,足足被卡了半个多小时,第一次错误是答案少了两个;第二次是格式错误。但我好不容易AC了这一题,我必须写个题解给大家避避坑。 …… 题解列表 2022年11月19日 0 点赞 0 评论 459 浏览 评分:0.0
C语言 宏定义的练习& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define remainder(a,b) printf("%d",a%b) int main(){ int a…… 题解列表 2022年11月19日 0 点赞 0 评论 273 浏览 评分:0.0
1152题解c语言 摘要:解题思路:注意事项:参考代码:方法一#include <stdio.h>#include <math.h>int main(){ int m,i; double t=1; scanf("%d",&m)…… 题解列表 2022年11月19日 0 点赞 0 评论 286 浏览 评分:0.0
C语言 宏定义练习之三角形面积& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define S_(x,y,z) (x+y+z)/2#define area(S,a,b,c) sqr…… 题解列表 2022年11月19日 0 点赞 0 评论 329 浏览 评分:0.0
C语言 宏定义之闰年判断& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define LEAP_YEAR(y) if(((y%4==0)&&(y%100!=0))||(y%4…… 题解列表 2022年11月19日 0 点赞 0 评论 228 浏览 评分:0.0
C语言 实数的打印& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ void out_real_num_format(double a); double a; s…… 题解列表 2022年11月19日 0 点赞 0 评论 223 浏览 评分:0.0