SCU's Bathhouse

来源:互联网 发布:程序员的自我修养书评 编辑:程序博客网 时间:2024/06/07 05:17
// SCU's Bathhouse.cpp : 定义控制台应用程序的入口点。////#include "stdafx.h"#include<iostream>#include<cstdio>using namespace std;//int _tmain(int argc, _TCHAR* argv[])int main(){int Case, n;cin >> Case;while( Case-- ){cin >> n;double ans = 0;if( n <= 10 )ans = 1;else{ans = 1 + ( n - 10 ) * 0.15;}printf( "%.2f\n", ans );}return 0;}

原创粉丝点击