Skip to content

Commit 776303c

Browse files
committed
Completed all sections
1 parent abf66e8 commit 776303c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1625
-245
lines changed

assets/css/style.css

+27-16
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ body {
2020
body::before {
2121
content: "";
2222
position: fixed;
23-
background: #040404 url("../img/backg1.jpg") top right no-repeat;
23+
background: #040404 url("../img/profile/backg1.jpg") top right no-repeat;
2424
background-size: cover;
2525
left: 0;
2626
right: 0;
@@ -416,19 +416,19 @@ section .container {
416416
}
417417

418418
.profile{
419-
max-height: 300px;
420-
max-width: 300px;
419+
max-height: 250px;
420+
max-width: 250px;
421421
border-radius: 50%;
422422
overflow: hidden;
423423
border: 6px solid rgba(255, 255, 255, 0.1);
424424
background: rgba(255, 255, 255, 0.1);
425425
margin: 20px 20px 20px 50px;
426426
}
427-
/*
428-
.about-me .content ul{
429-
list-style: none;
427+
428+
.about-me .content {
429+
text-align: justify;
430430
}
431-
431+
/*
432432
.about-me .content ul li::before {
433433
margin-bottom: 20px;
434434
color: #fff;
@@ -643,22 +643,23 @@ section .container {
643643
/*--------------------------------------------------------------
644644
# Resume
645645
--------------------------------------------------------------*/
646-
.resume .resume-title {
646+
.resume-title {
647647
font-size: 26px;
648648
font-weight: 700;
649649
margin-top: 20px;
650650
margin-bottom: 20px;
651651
color: #fff;
652652
}
653653

654-
.resume .resume-item {
654+
.resume-item {
655655
padding: 0 0 20px 20px;
656656
margin-top: -2px;
657657
border-left: 2px solid rgba(255, 255, 255, 0.2);
658658
position: relative;
659+
text-align: justify;
659660
}
660661

661-
.resume .resume-item h4 {
662+
.resume-item h4 {
662663
line-height: 18px;
663664
font-size: 18px;
664665
font-weight: 600;
@@ -668,7 +669,7 @@ section .container {
668669
margin-bottom: 10px;
669670
}
670671

671-
.resume .resume-item h5 {
672+
.resume-item h5 {
672673
font-size: 16px;
673674
background: rgba(255, 255, 255, 0.15);
674675
padding: 5px 15px;
@@ -677,19 +678,20 @@ section .container {
677678
margin-bottom: 10px;
678679
}
679680

680-
.resume .resume-item ul {
681+
.resume-item ul {
681682
padding-left: 20px;
682683
}
683684

684-
.resume .resume-item ul li {
685+
.resume-item ul li {
685686
padding-bottom: 10px;
687+
text-align: justify;
686688
}
687689

688-
.resume .resume-item:last-child {
690+
.resume-item:last-child {
689691
padding-bottom: 0;
690692
}
691693

692-
.resume .resume-item::before {
694+
.resume-item::before {
693695
content: "";
694696
position: absolute;
695697
width: 16px;
@@ -707,7 +709,7 @@ section .container {
707709
.services .icon-box {
708710
text-align: center;
709711
background: rgba(204, 204, 204, 0.1);
710-
padding: 80px 20px;
712+
padding: 50px 20px;
711713
transition: all ease-in-out 0.3s;
712714
}
713715

@@ -745,6 +747,7 @@ section .container {
745747

746748
.services .icon-box h4 {
747749
font-weight: 700;
750+
margin-top: 30px;
748751
margin-bottom: 15px;
749752
font-size: 24px;
750753
}
@@ -758,6 +761,10 @@ section .container {
758761
font-size: 14px;
759762
margin-bottom: 0;
760763
}
764+
.services .icon-box img{
765+
width: 300px;
766+
height: 180px;
767+
}
761768

762769
.services .icon-box:hover {
763770
background: #18d26e;
@@ -1011,6 +1018,10 @@ section .container {
10111018
background-color: #18d26e;
10121019
}
10131020

1021+
.swiper-slide img{
1022+
width: 600px;
1023+
height: 400px;
1024+
}
10141025
/*--------------------------------------------------------------
10151026
# Contact
10161027
--------------------------------------------------------------*/
49.7 KB
Loading
55.7 KB
Loading
90.2 KB
Loading
101 KB
Loading
113 KB
Loading
71.1 KB
Loading

assets/img/certificates/main.c

+179
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
#include <bits/stdc++.h>
2+
using namespace std;
3+
4+
#define FOR(i,a,b) for (int i = (a); i < (b); i++)
5+
#define RFOR(i,b,a) for (int i = (b) - 1; i >= (a); i--)
6+
#define ITER(it,a) for (__typeof(a.begin()) it = a.begin(); it != a.end(); it++)
7+
#define FILL(a,value) memset(a, value, sizeof(a))
8+
9+
#define SZ(a) (int)a.size()
10+
#define ALL(a) a.begin(), a.end()
11+
#define PB push_back
12+
#define MP make_pair
13+
14+
typedef long long Int;
15+
typedef long long LL;
16+
typedef vector<int> VI;
17+
typedef pair<int, int> PII;
18+
19+
const double PI = acos(-1.0);
20+
const int INF = 1000 * 1000 * 1000;
21+
const Int LINF = INF * (Int) INF;
22+
const int MAX = 5007;
23+
const int MAX2 = 1000;
24+
const int MOD = 1000000007;
25+
26+
const int MAGIC = 10;
27+
bool T[MAX][MAX];
28+
int A[MAX][MAX];
29+
bool U[MAX][MAX];
30+
vector<PII> L;
31+
32+
vector<PII> R[MAX];
33+
34+
int dx[4] = {1, 0, -1, 0};
35+
int dy[4] = {0, 1, 0, -1};
36+
37+
int m, n, k;
38+
39+
int best;
40+
vector<PII> P;
41+
vector<PII> C;
42+
void calc(int x, int y, int score, int kk) {
43+
if (SZ(C) == kk) {
44+
if (score > best) {
45+
best = score;
46+
P = C;
47+
}
48+
return;
49+
}
50+
FOR(dir, 0, 4) {
51+
int xx = (x + dx[dir] + n) % n;
52+
int yy = (y + dy[dir] + m) % m;
53+
if (U[xx][yy])
54+
continue;
55+
C.push_back(MP(xx, yy));
56+
U[xx][yy] = true;
57+
calc(xx, yy, score + A[xx][yy], kk);
58+
C.pop_back();
59+
U[xx][yy] = false;
60+
}
61+
}
62+
63+
char getDir(PII a, PII b) {
64+
if ((a.first + 1) % n == b.first)
65+
return 'D';
66+
if ((a.first + n - 1) % n == b.first)
67+
return 'U';
68+
if ((a.second + 1) % m == b.second)
69+
return 'R';
70+
if ((a.second + m - 1) % m == b.second)
71+
return 'L';
72+
return 0;
73+
}
74+
75+
int main(int argc, char* argv[])
76+
{
77+
//ios::sync_with_stdio(false); cin.tie(0);
78+
79+
cin >> m >> n >> k;
80+
FOR(i,0,k) {
81+
int l;
82+
cin >> l;
83+
L.push_back(MP(l, i));
84+
}
85+
sort(ALL(L));
86+
reverse(ALL(L));
87+
FOR(i,0,n)
88+
FOR(j,0,m) {
89+
string s;
90+
cin >> s;
91+
if (s == "*") {
92+
T[i][j] = 1;
93+
A[i][j] = 0;
94+
} else {
95+
A[i][j] = stoi(s);
96+
}
97+
}
98+
set<pair<int, PII> > S;
99+
100+
FOR(i,0,n)
101+
FOR(j,0,m) {
102+
best = -INF;
103+
P.clear();
104+
U[i][j] = true;
105+
calc(i, j, 0, MAGIC);
106+
S.insert(MP(best + A[i][j], MP(i, j)));
107+
U[i][j] = false;
108+
}
109+
110+
int c = 0;
111+
while (SZ(S) > 0 && c < k) {
112+
auto p = *S.rbegin();
113+
int x = p.second.first;
114+
int y = p.second.second;
115+
S.erase(p);
116+
// cout << x << ' ' << y << endl;
117+
if (U[x][y])
118+
continue;
119+
int l = L[c].first;
120+
best = -INF;
121+
P.clear();
122+
U[x][y] = true;
123+
calc(x, y, 0, MAGIC);
124+
U[x][y] = false;
125+
if (best + A[x][y] != p.first) {
126+
S.insert(MP(best + A[x][y], MP(x, y)));
127+
continue;
128+
}
129+
130+
int id = L[c].second;
131+
R[id].push_back(MP(x, y));
132+
U[x][y] = true;
133+
134+
FOR(i,0,l - 1) {
135+
best = -INF;
136+
P.clear();
137+
calc(x, y, 0, min(MAGIC, l - 1));
138+
139+
if (best == -INF) {
140+
R[id].clear();
141+
break;
142+
}
143+
144+
x = P[0].first;
145+
y = P[0].second;
146+
R[id].push_back(MP(x, y));
147+
U[x][y] = true;
148+
}
149+
if (SZ(R[id]) > 0) {
150+
c ++;
151+
}
152+
// cout << endl;
153+
// FOR(i,0,SZ(R[id])) {
154+
// cout << R[id][i].first << ' ' << R[id][i].second << endl;
155+
// }
156+
// cout << endl;
157+
// return 0;
158+
159+
}
160+
161+
FOR(i,0,k) {
162+
if (SZ(R[i]) == 0) {
163+
cout << endl;
164+
} else {
165+
cout << R[i][0].second << ' ' << R[i][0].first;
166+
FOR(j,1,SZ(R[i])) {
167+
cout << ' ' << getDir(R[i][j - 1], R[i][j]);
168+
int x = R[i][j].first;
169+
int y = R[i][j].second;
170+
if (T[x][y])
171+
cout << ' ' << y << ' ' << x;
172+
}
173+
cout << endl;
174+
}
175+
}
176+
177+
178+
return 0;
179+
}

assets/img/portfolio/incomplete.png

48.5 KB
Loading

assets/img/portfolio/memorygrid.png

-5.37 KB
Loading
File renamed without changes.
File renamed without changes.
File renamed without changes.

assets/img/projects/climate1.jpg

63.5 KB
Loading

assets/img/projects/climate2.jpg

114 KB
Loading

assets/img/projects/climate3.jpg

64 KB
Loading

assets/img/projects/disk1.png

43.4 KB
Loading

assets/img/projects/disk2.png

36.5 KB
Loading

assets/img/projects/disk3.png

46.2 KB
Loading

assets/img/projects/disk4.png

53.7 KB
Loading

assets/img/projects/disk5.png

38.5 KB
Loading

assets/img/projects/ems1.PNG

95.1 KB
Loading

assets/img/projects/ems2.PNG

109 KB
Loading

assets/img/projects/ems3.PNG

44 KB
Loading

assets/img/projects/ems4.PNG

153 KB
Loading

assets/img/projects/ems5.PNG

56 KB
Loading

assets/img/projects/memory1.jpg

66.6 KB
Loading

assets/img/projects/memory2.jpg

67.4 KB
Loading

assets/img/projects/memory3.jpg

89.9 KB
Loading

assets/js/main.js

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
*/
6060
on('click', '#navbar .nav-link', function(e) {
6161
let section = select(this.hash)
62+
console.log(this.hash);
6263
if (section) {
6364
e.preventDefault()
6465

0 commit comments

Comments
 (0)