题解列表

筛选

ikun崩溃代码

摘要:解题思路:套用if函数判定小数部分舍去,不构成完整的苹果。注意事项:参考代码:#include <stdio.h>int main(){ int n,x,y,z; scanf("%d %d %d",……

ikun崩溃代码

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ double x1,y1,x2,y2,x3,y3; double s,p,……

ikun崩溃代码

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

年会题解解解

摘要:解题思路:记忆化搜索(深度搜索+动态规划)+树观察题目发现可以将学校各教职工关系构建成一颗树,由题目限制可得,对于树中任意一个节点都应该有1.自己来,学生不来。2.自己不来,学生来或学生不来两种情况,……

结构体之成绩记录(简单易懂)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct student {    char num[10];     char name[20];    int a;     i……

基础的筛选n内素数

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool is_prim(int i){    bool ans=true;    for(i……

字符串编码

摘要:解题思路:注意事项:参考代码:#include <iostream>#include<string>using namespace std;int main() { string s; cin >> ……

宏定义之闰年判断

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAP(y) ((y%4==0&&y%100!=0)||(y%400==0))?L:Nint main(){……

阶乘求和(数组)

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