Blog Archives

UVa 156 – Ananagrams

Tagged with: ,
Posted in UVa Problems

UVa 11687 – Digits [solved]

Tagged with:
Posted in UVa Problems

LightOJ 1369 – Answering Queries [solved]

Explanation: Let’s an arrray A[4]={1, 4, 3, 5}. According to given function, SUM: = (1-4)+(1-3)+(1-5)+(4-3)+(4-5)+(3-5) = 1-4+1-3+1-5+4-3+4-5+3-5 = 1+1+1+4+4+3-4-3-3-5-5-5 = (1×3)+(4×2)+(3×1)-(4×1)-(3×2)-(5×3) = ? Isn’t easy to get SUM from the array? Here is the code to get SUM: So, for

Tagged with: ,
Posted in Light OJ, Problem Solving

UVa 10041 – Vito’s family [solved]

1st Approach: Brute Force; 2nd Approach: Implementation; #Faster Method

Tagged with:
Posted in UVa Problems

UVa 10928 – My Dear Neighbours [solved]

Tagged with:
Posted in UVa Problems

UVa – 10107 What is the Median? [solved]

Tagged with:
Posted in UVa Problems

UVa 10050 – Hartals [solved]

Tagged with:
Posted in UVa Problems
Follow IU Convergent on WordPress.com
Community!
Views
  • 29,777 views