Search found 2 matches

by alex8078
Thu Oct 01, 2015 12:52 pm
Forum: Volume 1 (100-199)
Topic: 136 - Ugly Numbers
Replies: 156
Views: 19025

Re: 136 - Ugly Numbers

Hello, everyone! I got the correct answer on my PC, but I got a WA after submission. I try some modifications and take care of the output format but still WA after I submit to UVA online judge. Please help me! Thx!! #include <stdio.h> #include <cstdlib> #include <iostream> using namespace std; long ...
by alex8078
Thu Jan 08, 2015 8:15 pm
Forum: Volume 103 (10300-10399)
Topic: 10370 - Above Average
Replies: 62
Views: 19119

10370 - above average

Hello, everybody. I got WA for my code but I don't know why. Please help me :) thx~ #include<iostream> #include<iomanip> #include<queue> #include<stdio.h> using namespace std; void above_score(const int num,const int total, priority_queue<int>& q) { int cnt = 0; while(!q.empty()) { if((q.top()*num)<...

Go to advanced search