imaging_momodi.cpp
来自「第四届百度杯预赛解题报告 武汉大学20090315」· C++ 代码 · 共 30 行
CPP
30 行
/*
* Author: momodi
* Created Time: 2009/3/13 15:40:35
* File Name: imaging.cpp
* Description:
*/
#include <cstdio>
#include <cstring>
#include <cmath>
#include <vector>
#include <cstdlib>
#include <algorithm>
using namespace std;
#define out(x) fprintf(stderr, "%s: %I64d\n", #x, (long long)(x))
#define SZ(v) ((int)(v).size())
const int maxint=-1u>>1;
template <class T> bool get_max(T& a, const T &b) {return b > a? a = b, 1: 0;}
template <class T> bool get_min(T& a, const T &b) {return b < a? a = b, 1: 0;}
int main() {
int ca;
scanf("%d", &ca);
while (ca--) {
double a, b, c;
scanf("%lf %lf %lf", &a, &b, &c);
printf("%.2lf\n", c * b / a);
}
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?