Coder Social home page Coder Social logo

morris821028 / uva Goto Github PK

View Code? Open in Web Editor NEW
551.0 37.0 271.0 51.32 MB

:love_letter: UVa and other online judege workspace

Makefile 0.26% C++ 90.21% C 6.78% HTML 1.51% JavaScript 0.18% Java 0.24% TeX 0.03% Python 0.40% PHP 0.05% Objective-C 0.01% Batchfile 0.01% Shell 0.02% Assembly 0.07% Cuda 0.23%
uva c-plus-plus competitive-programming competitive-programming-contests

uva's People

Contributors

morris821028 avatar yuukidach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uva's Issues

UVa 11236 Grocery store - Why check to result again?

  • From mail geniustanley [At] gmail.com

Content

想請問您這題
https://github.com/morris821028/UVa/blob/master/volume112/11236%20-%20Grocery%20store.cpp

為什麼要加上
if(fabs((a+b+c+d)/100.0 - ((double)a*b*c*d)/100000000.0) < 1e-12)

我以為 d 是直接用整數運算 d = (s * 1000000) / (p - 1000000); 算出來所以應該是對的
而且 if(s > 2000 || d < c)   continue; 檢查過 d 的範圍了應該直接是答案了

為什麼要重新檢查一次呢?

我不加那行結果 WA 了 QQ

謝謝您

UVa 972 solution has some Precision Error.

Hello, Vinit. ^_^

UVa#972
https://www.udebug.com/UVa/972
It seems like sol on uDebug has some precision Error.

For Below Input

4
2.0 2.5
6.9 2.1
7.4 3.3
1.0 2.1
10
-0.3 2.1
1.4 0.1
3.8 0.1
-2.0 0.1
3.2 1.1
-1.9 0.1
9.9 3.1
3.3 0.1
1.5 1.1
7.9 2.1

My Output

2.000

Output of uDebug or morris
https://github.com/morris821028/UVa/blob/master/volume009/972%20-%20Horizon%20Line.cpp

1.5

So, How about (1) or (2)?

  1. Add note like
    Sol on uDebug has some precision Error.
    maybe we should inform to morris also?
  2. swap sol with another AC one.(maybe mine?)

Thanks
~/Anjupiter

膜拜orz

大佬多久才把这些题刷完的

Solution logic

Hi morris821028,

It'll be great if you could briefly describe the logic of your solution.

Thanks,

Need a bit clarification

Hi morris821028,

In the solution '10065 - Useless Tile Packers', why you are using the following code to find the hull area.
double cont = calc_area(CH, m-1);
Especially the 'm-1' part. Is the algorithm returns actual hull?

Thanks

How did you solve Just a bit Sorted?

Hello, I'm trying to solve the problems from ACM ICPC 2015 South America. All of them were easy to medium, but I'm stuck at J - Just a bit sorted. Would you explain to me how did you solve it? What approach did you use? what is necessary to know before tackling this problem?

I don't understand your comments, and even if I did, I wouldn't know the analysis that led you to this solution.

Cheers from Chile, thanks!

test data

Do you have test data for problem uva 1590 ip Networks? Please help.

I got some from the internet.. sorry for bothering..

UVa 953, The Incredible Pile Machine

Hello, Vinit. ^_^

It seems like sol is wrong. I've cross-checked with Moriss' code(https://github.com/morris821028/UVa/blob/master/volume009/953%20-%20The%20Incredible%20Pile%20Machine%5Bv2%5D.cpp)

For below Input

---
1
3 7 18 9 15 9 8 15 17 2
----

Output should be

---
120 59

---

but, uDebug gives

---
201 59

---

Explanation

---
If we choose "120"
본문 이미지 1

If we choose "201"
본문 이미지 2
(ans) = (sum of all number)-(yellow number)
At glance, It seems like all correct, but In problem statement, It says
In case there are more than one possibility of pile assignment, choose always the one with lower order (e.g. if 012 and 210 yield 9 operations, choose 012).
So, correct answer is 120 59

---

And, It seems like Morris' code also wrong :(

For below input
----
1
3 10 17 1 9 9 8 12 19 11

---

My output and uDebug's output

---
021 59

---

but, Morris' code gives

---
012 59

---

Explanation

---
본문 이미지 3
본문 이미지 4
(ans) = (sum of all number)-(red number)
So, Correct answer is 021 59

---

If you agree, How about this?
(1) Swap sol with another AC one(I'm enclosing my code ^_^)
(2) Can you send morriss this information?


Thanks,
~/Anjupiter

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.