<<Vector-Print pretty>> _HakerRank_C++_STL

#include <iostream>#include <iomanip> using namespace std;int main() {int T; cin >> T;cout << setiosflags(ios::uppercase);cout << setw(0xf) << internal;while(T--) {double A; cin >> A;double B; cin >> B;double C; cin >> C;        /* Enter your code here */        cout << std::hex << std::left << std::showbase << std::nouppercase;         cout << (long long) A << endl;        cout << std::dec << std::right << std::setw(15) << std::setfill('_')              << std::showpos << std::fixed << std::setprecision(2);         cout << B << endl;        cout << std::scientific << std::uppercase << std::noshowpos              << std::setprecision(9);         cout << C << endl;        /* Enter your code here */}return 0;}

关于作者: 网站小编

码农网专注IT技术教程资源分享平台,学习资源下载网站,58码农网包含计算机技术、网站程序源码下载、编程技术论坛、互联网资源下载等产品服务,提供原创、优质、完整内容的专业码农交流分享平台。

热门文章