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

📄 1716.cpp

📁 这是哈尔滨工业大学acmOJ的源代码
💻 CPP
字号:
/*  This Code is Submitted by wywcgs for Problem 1716 on 2006-08-19 at 17:12:14 */ 
#include <cstdio>
#include <cmath>

const int N = 10240;
const double S = 4.5;

int main()
{
	int n, v[N], t[N];
	
	while(scanf("%d", &n) != EOF && n != 0) {
		for(int i = 0; i < n; i++) scanf("%d %d", &v[i], &t[i]);
		double rt = 1e20;
		for(int i = 0; i < n; i++) {
			if(t[i] < 0) continue;
			rt <?= S*3600/v[i]+t[i];
		}
		printf("%.0lf\n", ceil(rt));
	}
	
	return 0;
}

⌨️ 快捷键说明

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