题解列表

筛选

编写题解 2764: 带余除法

摘要:解题思路:注意事项:除数不能为0'//'为取整除,得到商的整数部分(向下取整)参考代码:a,b=map(int,input().split())while b!=0:    print……

题解 2794: 求平均年龄

摘要:解题思路:套个循环……注意事项:别抄我的,抄我的人我诅咒他电脑立刻关机参考代码:#include<bits/stdc++.h>#include<windows.h>using namespace st……

题解 2829: 数1的个数

摘要:解题思路:额……自己理解,学了循环的应该都会吧,我不解释了\^w^/。注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>#include<win……

短信计费C小白解

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

已知三点求面积

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

题解 1481剪刀石头布

摘要:解题思路:看到这个题目已知0代表石头,1代表布,2代表剪刀本题有三种结局1.甲胜乙负2.甲负乙胜3.平局第一种情况 甲出石头乙出剪刀甲出剪刀乙出布甲出布乙出石头第二种情况反之第三种情况 平局甲出石头乙……

石头剪刀布

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