Skip to content

Instantly share code, notes, and snippets.

@theoremoon
Created January 12, 2015 10:58
Show Gist options
  • Save theoremoon/0a174df20cf5ce82a07f to your computer and use it in GitHub Desktop.
Save theoremoon/0a174df20cf5ce82a07f to your computer and use it in GitHub Desktop.
/*
* 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