班级人数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ float p,q; int i,cheak; while (scanf("%f%f",&p,&q)!=EOF…… 题解列表 2017年12月09日 0 点赞 0 评论 908 浏览 评分:0.0
班级人数 暴力(C语言代码) 摘要:解题思路:利用数学参考代码:#include <stdio.h> int main() { double p, q; while(scanf("%lf %lf", &p, &q) !=…… 题解列表 2017年12月12日 0 点赞 0 评论 959 浏览 评分:0.0
班级人数 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] a…… 题解列表 2017年12月15日 1 点赞 0 评论 930 浏览 评分:0.0
直接循环(Python) 摘要:while 1: list1=list(map(float,input().split())) if len(list1)==0: break P=list1[0]/1…… 题解列表 2021年04月20日 0 点赞 0 评论 319 浏览 评分:0.0
题解 1239: 班级人数 摘要:参考代码:#include<stdio.h>#include<string.h>int main(){ float a,b; float i,j; here: while(scanf(…… 题解列表 2021年07月08日 0 点赞 0 评论 223 浏览 评分:0.0
班级人数(加油哟!) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double p,q; int k,n; while( scanf("%lf %…… 题解列表 2022年02月16日 1 点赞 0 评论 219 浏览 评分:0.0
班级人数(模拟) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){ d…… 题解列表 2025年04月03日 0 点赞 0 评论 28 浏览 评分:0.0
班级人数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { float a,b; while(cin>>a>>…… 题解列表 2018年06月01日 0 点赞 0 评论 778 浏览 评分:6.0
班级人数 (C语言代码) 摘要:#include <stdio.h> int main() { float p,q; int i,cheak; while (scanf("%f%f",&p,&q)!=EOF) {…… 题解列表 2017年10月27日 0 点赞 0 评论 1198 浏览 评分:9.9
班级人数 (C语言代码) 摘要:解题思路: 方法1: 假设当班级有x人时,一定会有y人及格(y<x)。使y/x的值大于P%,小于Q%,直接暴力,不想那么多。结果也AC了。 方法2: 再…… 题解列表 2019年02月18日 1 点赞 2 评论 1529 浏览 评分:9.9