杯浅
杯浅
全部文章
分类
题解(5)
归档
标签
去牛客网
登录
/
注册
杯浅的博客
全部文章
(共6篇)
题解 | #第一个只出现一次的字符#双指针方法
int FirstNotRepeatingChar(char* str ) { // write code here if(*str&...
C
2022-07-26
0
301
题解 | 无报错最新正确答案C#计算一元二次方程#
#include <math.h> int main() { float a = 0.0; float b = 0.0; float c = 0.0; while (scanf("%f %f %f", &a, &b, &c) == ...
C
2022-04-29
4
350
题解 | #计算一元二次方程#
#include <math.h> int main() { float a = 0.0; float b = 0.0; float c = 0.0; while (scanf("%f %f %f", &a, &b, &c) == ...
C
2022-04-29
0
296
题解 | #计算三角形的周长和面积#
#include <math.h> int main() { int a = 0; int b = 0; int c = 0; scanf("%d %d %d", &a, &b, &c); float circumferen...
C
2022-04-24
0
265
题解 | #实现四舍五入#
#include using namespace std; int main() { double d; cin >> d; // write your code here...... scanf("%lf", &d); int e = int(d); if(d > 0...
C
2022-04-23
0
275
题解 | #Fibonacci数列#
#include <math.h> #include <stdio.h> int main() { int fib1 = 0; int fib2 = 1; int fib3 = 1; int n = 0; scanf("%d", &n); while (1...
C
2022-04-13
1
434