#include <stdio.h> int main() { int a;float b; scanf("a=%d,b=%f",&a,&b); printf("%d,%f\n",a,b); printf("%d\n",a+(int)b); getchar(); } 应该输入:a=45,b=3.6 ...
分类:
编程语言 时间:
2021-04-29 11:51:37
阅读次数:
0
原题链接 题意:很多链,然后让每条链中各个元素都要挨在一起,然后给他们每个元素分配层数,层数相同的要以元素大小从左往右。 题解:就是两个栈模拟一下贪心即可。 代码: #include <algorithm> #include <cstring> #include <cstdio> #include ...
分类:
其他好文 时间:
2021-04-29 11:36:03
阅读次数:
0
c语言中程序的循环控制 大小值的判断及赋值。 输出长度大于高度的矩形。 1、 #include <stdio.h> int main(void) { int i, j, height, width, min, max; printf("please input the height and widt ...
分类:
编程语言 时间:
2021-04-28 12:21:22
阅读次数:
0
#include <iostream>#include <cstdlib>#include <ctime>using namespace std;int main(){ int num1,num2,op,result1,result2; //num1,num2:操作数;op:运算符;result1, ...
分类:
其他好文 时间:
2021-04-28 12:11:52
阅读次数:
0
php命名空间在第一个文件开关以namespace 命名空间名,则当前的文件为该命名空间,当include其他文件的,其他文件的命名空间为文件的开头namespace名,如没有为全局,不因为include继承,查看当前文件的命名空间可用echo '"', __NAMESPACE__, '"'; ph ...
分类:
Web程序 时间:
2021-04-28 12:03:18
阅读次数:
0
题目 Atcoder 思路 代码 #include <iostream> #include <cstring> #include <algorithm> #include <queue> using namespace std; const int N = 500010, INF = 1e9; in ...
分类:
其他好文 时间:
2021-04-28 11:51:48
阅读次数:
0
输出向下的金字塔 1、for语句 #include <stdio.h> int main(void) { int i, j, layer; puts("please input the layer"); printf("layer = "); scanf("%d", &layer); for(i = ...
分类:
编程语言 时间:
2021-04-27 15:19:08
阅读次数:
0
思路: 水题,略过 Tip: 无 #include <bits/stdc++.h> using namespace std; int main() { int n, t, num = 0; string now; cin >> n >> t; getchar(); for (int i = 1; i ...
分类:
其他好文 时间:
2021-04-27 15:16:28
阅读次数:
0
1.生成可执行程序 INCLUDE = $(shell pkg-config --cflags opencv)#opencv的include头文件路径 LIBS = $(shell pkg-config --libs opencv) -lm #opencv的lib库文件路径 OTHERLIB= -l ...
分类:
其他好文 时间:
2021-04-27 15:10:02
阅读次数:
0
思路: 水题,略过 Tip: 无 #include <bits/stdc++.h> using namespace std; const int maxn = 1000 + 5; int ans[maxn]; int main() { int a, b, n; cin >> a >> b >> n; ...
分类:
其他好文 时间:
2021-04-27 15:09:43
阅读次数:
0