: [编程入门]结构体之成绩记录c程序 摘要:#include<stdio.h>struct dey{ int year; int month; int day; }runnian;int main(){// struct demo run…… 题解列表 2024年07月26日 0 点赞 0 评论 189 浏览 评分:2.0
【C语言题解】二进制移位练习 摘要:## 思路 右移4到7位,按权重累加,求得十进制结果 ## 代码 ```cpp #include int main(){ int a, s = 0, k = 1; scanf ("%…… 题解列表 2024年07月25日 0 点赞 0 评论 274 浏览 评分:0.0
2936: 简单算术表达式求值 摘要:```cpp #include using namespace std; int js(int a,char c,int b){ if(c=='+') cout…… 题解列表 2024年07月25日 0 点赞 0 评论 308 浏览 评分:0.0
1157: 亲和数 摘要:```cpp #include using namespace std; int qhs(int x,int y){ int a=0,b=0; for(int i=1;i…… 题解列表 2024年07月25日 0 点赞 0 评论 121 浏览 评分:0.0
编写题解 2247: 蓝桥杯算法提高-输出三个整数的最大数 摘要:```cpp #include using namespace std; int max(int a,int b,int c){ couta>>b>>c; max(a,b,c); r…… 题解列表 2024年07月25日 0 点赞 0 评论 113 浏览 评分:0.0
一元二次方程--------------C语言 摘要:解题思路:利用求根公式注意事项:导入数学库<math.h>参考代码:#include <stdio.h> #include <math.h> int main() { float a, b,…… 题解列表 2024年07月25日 0 点赞 0 评论 341 浏览 评分:9.9
使用按位与运算求解委派任务 摘要:方法1:使用按位与运算假设0表示不去,1表示去,很显然这是一个二进制数,因此可以使用按位与运算求解,如果二进制数#include int main() { int a, b, c, d, …… 题解列表 2024年07月25日 2 点赞 0 评论 154 浏览 评分:0.0
利用数组的方法 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<vector>int main() { int m = 0; cin >> …… 题解列表 2024年07月25日 0 点赞 0 评论 173 浏览 评分:0.0
6行:万花丛中过,片叶不沾身 摘要:解题思路:注意事项:参考代码:word=input()result=""for i in range(len(word)-1): result += chr(ord(word[i])+ord(w…… 题解列表 2024年07月25日 0 点赞 0 评论 524 浏览 评分:0.0
12行:万花丛中过,片叶不沾身 摘要:解题思路:注意事项:参考代码:n=int(input())def rule(p1,p2): if p1==p2: return "Tie" elif (p1=="Scisso…… 题解列表 2024年07月25日 0 点赞 0 评论 468 浏览 评分:9.9