Pages

Saturday, December 18, 2010

Secrets of NOKIA Mobile

On the main screen type
*#06# for checking the IMEI (International Mobile Equipment Identity).
*#7780# reset to factory settings.
*#67705646# This will clear the LCD display (operator logo).
*#0000# To view software version.
*#2820# Bluetooth device address.
*#746025625# Sim clock allowed status.
*#62209526# - Display the MAC address of the WLAN adapter. This is available only in the newer devices that support WLAN
#pw+1234567890+1# Shows if sim have restrictions.

3 Amazing Firefox Hack

  1.Save Session For All Tabs Opened In Multiple Firefox Windows:

If you are an ardent user of Firefox then you may be aware that when more than one Firefox windows are opened up, in that case when you close a Firefox window, it does ask me the option to save the session and exit, rather it ask to close all the tabs in that Firefox window, but it won’t save the tabs in other windows. So this way you could not save the session for multiple tabs opened in multiple Firefox windows.
In such a case, there is only one option left to save the session

Remove Virus From USB

One of the ways by which a virus can infect your PC is through USB/Pen drives. Common viruses such as ’Ravmon’ , ‘New Folder.exe’, ‘Orkut is banned’ etc are spreading through USB drives. Most anti-virus programs are unable to detect them and even if they do, in most cases they are unable to delete the file, only quarantine it. Here are the things which you can do if you want to remove such viruses from your USB Drive
Whenever you plug a USB drive in your system, a window will appears

Tuesday, November 30, 2010

UVA Problem#10424

Question:
http://uva.onlinejudge.org/external/104/10424.html

Solution:
1. Take 2 strings input. adjust the values of each character according to the problem describes. (here it was stored in ans1 and ans2 variables)
2. Then make the sum of these numbers until it comes in one digit. (here it is done in temp1 and temp2 variables)
3. Answer the value of the two ratio in percentage for the larger value of temp1 and temp2.

UVA Problem#10347

Question:

Solution:
It's a bit tricky to derive the formula for this problem. Basically, you can prove that the area of the triangle formed by the medians is 3/4 of the area of the original triangle. Then, you can use Heron's formula to get the area of the median triangle, and multiply by 4/3. So in all:

A = (4/3) * sqrt(s(s-m1)(s-m2)(s-m3))

Where m1, m2, and m3 are the median lengths, and s is the semiperimeter of the median triangle:

s = (m1 + m2 + m3) / 2

There are some tricky things to watch out for:

UVA Problem#11727

Question:

Solution:
1. Take an integer input indicating the number of test case. (say t)
2. Take 3 integers input in an array and sort them using the built in function sort().
3. Print the 2nd value from the array.

UVA Problem#10346

Question:
http://uva.onlinejudge.org/external/103/10346.html 

Solution:

Find the pattern and derive the following formula (total_cigar and butt initally set to 0) and simply simulate the process...

while (n > 0) {
  total_cigar += n; /* accumulate all new cigars so far */
  butt += n; /* after Peter smokes these n cigar, we have n butts */
  n = butt / k; /* so these n butts become new cigars */
  butt %= k; /* butts left are reserved for future cigars */
}

Source: http://www.comp.nus.edu.sg/~stevenha/programming/acmoj.html

int main(){
....
....
sum = n, x = n;
        while(x >= k)
            sum += (x / k), x = (x / k) + (x % k);
....
.....
}