Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1c 2b 3a 4 b 5b
- pentru i<-1,n executa
- ...
- sf pentru
- (d.luna==e.dev.luna && d.zi<e.dev.zi) || (d.luna<e.dev.luna)
- 5 10 15 20 25 30 35 40 45 50
- 1 2 3 4 5 7 8 9 10 11
- 6 12
- 1 2 3 4 5 6 7 8 9 10
- * * *
- 1 2 4
- afine caise lamai mere pere
- 1 2 3 4 5
- 1 2
- 1 2 3
- 1 2 3 4
- 1 2 3 4 5
- 1 2 3 5
- 1 2 4
- SII matricea a[i][j]=max(5-i,5-j)
- SIII ex 1
- #include <iostream>
- using namespace std;
- int Egal(int n){
- int k=0;
- while(n!=0){
- if(n%2==1){
- if(k==0){ //retinem prima cifra impara
- k=n%10;
- }
- else if(k!=n%10){
- return 0;
- }
- }
- n=n/10;
- }
- return 1;
- }
- int main() {
- cout<<Egal(47777701);
- return 0;
- }
- SIII ex 3
- d c b a
- z y x
- fi=fi-1+fi-2-fi-3
- d=c+b-a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement