⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 2253.cpp

📁 这是哈尔滨工业大学acmOJ的源代码
💻 CPP
字号:
/*  This Code is Submitted by wywcgs for Problem 2253 on 2006-05-29 at 10:23:20 */ 
#include <cstdio>
#include <algorithm>
using namespace std;

int main()
{
	int t, T;
	
	scanf("%d", &T);
	for(t = 0; t < T; t++) {
		double p; scanf("%lf", &p);
		printf("%.0lf%%\n", max(p, (1-p)/3)*100);
	}
	
	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -