UVA-Solutions 11945 – Financial Management.

UVA-Solutions 11945 – Financial Management.

  #include<bits/stdc++.h> using namespace std; int main() { int t; double d, sum; int j=0; scanf("%d",&t); while(t--) { sum = 0; for(int i=0; i<12; i++) { scanf("%lf",&d); sum = sum + d; } double avg = sum/12.00; printf("%d $",++j);...

UVa Solution 12149 : Feynman

UVa Solution 12149 : Feynman

    #include <bits/stdc++.h> using namespace std; int main() { int a,i,n,j,s; while(scanf("%d",&a)==1 && a>0) { s=0; for(i=1;i<=a;i++) s+=(i*i); cout<<s<<endl; } return 0; }...

Uva 12372 – Packing for Holiday

Uva 12372 – Packing for Holiday

    #include <bits/stdc++.h> using namespace std; int main() { int H,W,L,tc,c=1; cin>>tc; while(tc--) { cin>>L>>W>>H; printf("Case %d: ",c++); if(L<=20 and W<=20 and H<=20) cout<<"good"<<endl; else...

UVA Problem 12895 Solution -Armstrong Number

UVA Problem 12895 Solution -Armstrong Number

    #include <bits/stdc++.h> using namespace std; int main() { int num,tc,sum,j; vector<int>v; cin>>tc; while(tc--) { cin>>num; v.push_back(num); int tempo=num; int i=0; while(tempo) { v[i]=tempo%10; tempo/=10; i++; } for(sum = j...

UVA-Solutions 11677 (Alarm Clock)

UVA-Solutions 11677 (Alarm Clock)

    #include <bits/stdc++.h> using namespace std; int main() { int h1,m1,h2,m2,hr,mr,tr; while(cin>>h1>>m1>>h2>>m2) { if(h1==0 && m1==0 && h2==0 && m2==0) break; hr=h2-h1; mr=m2-m1; tr=(hr*60)+mr;...

UVA  11462 (Age sort) Solution

UVA 11462 (Age sort) Solution

//UVA Problem 11462 Solution /** * @Author : Jesmin Akther */ #include <stdio.h> long int n, array[2000005], c, d, t; int main() { while(scanf("%ld", &n)==1 ) { if(n==0) break; for (c = 0; c < n; c++) { scanf("%ld", &array[c]); } for (c = 1 ; c <=...

CAMBRIDGE IELTS 14 READING TEST 3 ANSWERS

CAMBRIDGE IELTS 14 READING TEST 3 ANSWERS

PASSAGE 1: THE CONCEPT OF INTELLIGENCE QUESTIONS 1-3: READING PASSAGE 1 HAS SIX PARAGRAPHS, A-F. 1. ANSWER: B Explain ·     Key words: non-scientists, assumptions, intelligence, influence, behavior ·    People‟s behavior towards...

CAMBRIDGE IELTS 14 READING TEST 2 ANSWERS

Cambridge IELTS 14 is the latest IELTS exam preparation.https://draftsbook.com/ will help you to answer all questions in cambridge ielts 14 reading test 2 with detail explanations. PASSAGE 1: ALEXANDER HENDERSON (1831-1913) QUESTIONS 1-8: DO THE FOLLOWING...

Cambridge IELTS 13 Reading Test 4 Answers 

Cambridge IELTS 13 Reading Test 4 Answers 

PASSAGE 1: CUTTY SARK: THE FASTEST SAILING SHIP OF ALL TIME QUESTIONS 1-8: DO THE FOLLOWING STATEMENTS AGREE WITH THE INFORMATION GIVEN IN READING PASSAGE 1? 1. CLIPPERS WERE ORIGINALLY INTENDED TO BE USED AS PASSENGER SHIPS Key words: clippers, originally,...

 Cambridge IELTS 13 Reading Test 3 Answers

 Cambridge IELTS 13 Reading Test 3 Answers

Cambridge IELTS 13 is the latest IELTS exam preparation.https://draftsbook.com/ will help you to answer all questions in cambridge ielts 13 reading test 3 with detail explanations. PASSAGE 1: THE COCONUT PALM QUESTIONS 1-8: COMPLETE THE TABLE BELOW....