Created
January 12, 2015 10:58
-
-
Save theoremoon/0a174df20cf5ce82a07f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0100&lang=jp | |
* | |
* give up | |
*/ | |
#include <iostream> | |
#include <utility> | |
#include <set> | |
#include <cmath> | |
using namespace std; | |
using p = pair<double, int>; | |
set<p> xs; | |
int main(){ | |
while (true) { | |
xs.clear(); | |
int n; cin >> n; | |
int a, b, c; | |
for (int i = 0; i < n; ++i){ | |
cin >> a >> b >> c; | |
xs.insert(make_pair(log(b)*c, a)); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment