Skip to content

Commit 7285761

Browse files
committed
easy problem solve
1 parent 6046c6e commit 7285761

File tree

15 files changed

+161
-0
lines changed

15 files changed

+161
-0
lines changed

Uri-online-judge/1067

18.4 KB
Binary file not shown.

Uri-online-judge/1067.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include <iostream>
2+
using namespace std;
3+
int main()
4+
{
5+
int n;
6+
cin >> n;
7+
for (int i = 1; i < n ; i++)
8+
{
9+
if (i%2==1)
10+
{
11+
cout << i << "\n";
12+
}
13+
}
14+
return 0;
15+
}

Uri-online-judge/1097

18.2 KB
Binary file not shown.

Uri-online-judge/1097.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include <iostream>
2+
using namespace std;
3+
4+
int main()
5+
{
6+
int j = 7;
7+
for (int i=1; i<9; i++){
8+
cout << "I=" << i << " J=" << j << "\n";
9+
cout << "I=" << i << " J=" << j-1 << "\n";
10+
cout << "I=" << i << " J=" << j-2 << "\n";
11+
i++;
12+
j+=2;
13+
}
14+
return 0;
15+
}

Uri-online-judge/1144

18.4 KB
Binary file not shown.

Uri-online-judge/1144.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#include <iostream>
2+
using namespace std;
3+
int main()
4+
{
5+
int a,b,c,d,e;
6+
cin >> a;
7+
for (int i = 1; i <= a; i++){
8+
b = i * i ;
9+
c = i * i * i ;
10+
cout << i << " " << b << " " << c << "\n";
11+
d = b + 1;
12+
e = c + 1;
13+
cout << i << " " << d << " " << e << "\n";
14+
}
15+
return 0;
16+
}

Uri-online-judge/1175

8.7 KB
Binary file not shown.

Uri-online-judge/1175.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#include <iostream>
2+
using namespace std;
3+
4+
int main()
5+
{
6+
int N[20];
7+
8+
for(int i=0; i<3; i++){
9+
int a;
10+
cin >> a;
11+
N[i] = a;
12+
}
13+
14+
cout << N[0];
15+
return 0;
16+
}

Uri-online-judge/1188.cpp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#include <iostream>
2+
using namespace std;
3+
int main()
4+
{
5+
double N[12][12];
6+
char p;
7+
double soma = 0.0;
8+
cin >> p;
9+
for (int i=0; i < 12; i++)
10+
{
11+
for (int j=0; i< 12; j++)
12+
{
13+
cin >> N[i][j];
14+
if (j < (11 - i) && j < i)
15+
{
16+
soma +=N[i][j];
17+
}
18+
}
19+
}
20+
if (p=='S')
21+
cout << soma;
22+
else
23+
cout << soma/30.00;
24+
return 0;
25+
}

Uri-online-judge/2060

18.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)