codeforces-scrape

Codeforces scraped problems and editorials
git clone git://git.laack.co/codeforces-scrape.git
Log | Files | Refs | README

171G.md (542B)


      1 Source: https://codeforces.com/problemset/problem/171/G
      2 
      3 G. Mysterious numbers - 2
      4 
      5 time limit per test
      6 
      7 2 seconds
      8 
      9 memory limit per test
     10 
     11 256 megabytes
     12 
     13 input
     14 
     15 stdin
     16 
     17 output
     18 
     19 stdout
     20 
     21 Input
     22 
     23 The only line of input contains three integers *a*1, *a*2, *a*3 (1 ≤ *a*1, *a*2, *a*3 ≤ 20), separated by spaces.
     24 
     25 Output
     26 
     27 Output a single integer.
     28 
     29 Examples
     30 
     31 Input
     32 
     33 ```
     34 2 3 2
     35 ```
     36 
     37 Output
     38 
     39 ```
     40 5
     41 ```
     42 
     43 Input
     44 
     45 ```
     46 13 14 1
     47 ```
     48 
     49 Output
     50 
     51 ```
     52 14
     53 ```
     54 
     55 Input
     56 
     57 ```
     58 14 5 9
     59 ```
     60 
     61 Output
     62 
     63 ```
     64 464
     65 ```
     66 
     67 Input
     68 
     69 ```
     70 17 18 3
     71 ```
     72 
     73 Output
     74 
     75 ```
     76 53
     77 ```