1011
来源:互联网 发布:华彩人生软件 编辑:程序博客网 时间:2024/06/08 02:55
#include<cstdio>#include<vector>#include <algorithm>using namespace std;vector<float> v[5];int main(){ int w[3]; //float v[3][3]; float temp,c; for(int i=0;i<3;i++){ temp=0; for(int j=0;j<3;j++){ scanf("%f",&c); v[i].push_back(c); if(v[i][j]>temp){ w[i]=j; temp=v[i][j]; } } } for(int i=0;i<3;i++){ if(w[i]==0) printf("W "); else if(w[i]==1) printf("T "); else printf("L "); } printf("%.2f",(v[0][w[0]]*v[1][w[1]]*v[2][w[2]]*0.65-1)*2); return 0;}
阅读全文
0 0
- 1011
- 1011
- 1011
- 1011
- 1011
- 1011
- 1011
- 1011
- 1011
- [1011-
- 1011
- 1011
- 1011
- 1011
- 1011
- 1011
- 1011
- 1011
- 第4章 常用对象【下】 案例
- 多activity使用同一socket
- 【leetcode】58. Length of Last Word(Python & C++)
- Html——canvas学习
- POJ 2836 Rectangular Covering(状压dp)
- 1011
- 【from zero to zero】noip2017
- [js高手之路]设计模式系列课程-设计一个模块化扩展功能(define)和使用(use)库
- 树莓派Android Things物联网开发:按键中断及消抖
- Java关键字static和final
- 欧几里得扩展
- Java 8 新特性(二)流类库
- 1. Two Sum
- Python之读写文件