Results 1 to 12 of 12

Thread: - -

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Jan:2011
    Location: Sofia
    Posts: 9

    - -

    , , .
    Code:
    #include<iostream>
    using namespace std;
    
    int main() {
        cout << "Vavedi za kolko dni iskash da vavedej naprejeniq: " << endl;
        int days;
        cin >> days;
        cout << "Vavedi kolko naprejeniq iskash da vavedesh na den: " << endl;
        int naprejeniq_na_den;
        cin >> naprejeniq_na_den;
        int naprejeniq[100][100];
        int minimalni_stoinosti[100];
        int tekush_minimum = 99999;
    
        for(int i=0; i<days; i++) {
            for(int j=0; j<naprejeniq_na_den; j++) {
                cout << "Vavedi naprejenie za den " << i+1 << endl;
                cin >> naprejeniq[j][i];
    
                if(naprejeniq[j][i] < tekush_minimum) {
                    tekush_minimum = naprejeniq[j][i];
                }
            }
            minimalni_stoinosti[i] = tekush_minimum;
    
            tekush_minimum = 99999;
    
        }
    
        for(int i=0; i<days; i++) {
            cout << "minimalno naprejenie za den " << i+1 << " : " << minimalni_stoinosti[i] << endl;
    
        }
        return 0;
    }
    , , . , , ( ) . , , . , . , , .. , - ... .
    Last edited by vbTheKing; 12th December 2012 at 16:37.

  2. #2
    AMD fan EvilDevil_'s Avatar
    Join Date: Dec:2010
    Location:
    Posts: 1,275
    : ,

    , . 100 . 40-60B . , . CODE .

    Laa shay'a waqi'un moutlaq bale kouloun moumkine.
    Nulla &#233; reale, tutto &#233; lecito.

  3. #3
    Registered User
    Join Date: Jan:2011
    Location: Sofia
    Posts: 9
    . , ? - - . , - . , , , , , . , , . , , .

  4. #4
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    , , .
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  5. #5
    Registered User
    Join Date: Jan:2011
    Location: Sofia
    Posts: 9
    Quote Originally Posted by anrieff View Post
    , , .
    , . , . - , , , . , , , . .. , , . , .

  6. #6
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    .. .
    , - .., , - - . .
    , , - .

    , , , , .

  7. #7
    AMD fan EvilDevil_'s Avatar
    Join Date: Dec:2010
    Location:
    Posts: 1,275
    Quote Originally Posted by straightup View Post
    . , ? - - . , - . , , , , , . , , . , , .
    . 7:30, . Hint: 20-30

    Laa shay'a waqi'un moutlaq bale kouloun moumkine.
    Nulla &#233; reale, tutto &#233; lecito.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |