From df0bc620412285613cbb5005f4d8784a8e3bb849 Mon Sep 17 00:00:00 2001 From: qwer1234qwer1234qwer Date: Sun, 1 Jun 2025 00:50:19 +0900 Subject: [PATCH 1/3] Create 2753_1.cpp --- 0x02/solutions/2753_1.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 0x02/solutions/2753_1.cpp diff --git a/0x02/solutions/2753_1.cpp b/0x02/solutions/2753_1.cpp new file mode 100644 index 00000000..5e6b74bc --- /dev/null +++ b/0x02/solutions/2753_1.cpp @@ -0,0 +1,20 @@ +// Authored by : - +// Co-authored by : - +//http://boj.kr/4b1e161ffc9b4281ab7dad4d1b6cbbd9 +#include +using namespace std; + +int main() +{ + ios::sync_with_stdio(0); + cin.tie(0); + + int year; + cin >> year; + + cout << chrono::year(year).is_leap(); +} + +/* +https://en.cppreference.com/w/cpp/chrono/year/is_leap +*/ From f109b278c536b17a0bf51a1f65b1138ab7fee91a Mon Sep 17 00:00:00 2001 From: qwer1234qwer1234qwer Date: Sun, 1 Jun 2025 01:06:20 +0900 Subject: [PATCH 2/3] Update 2753_1.cpp --- 0x02/solutions/2753_1.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/0x02/solutions/2753_1.cpp b/0x02/solutions/2753_1.cpp index 5e6b74bc..fbb98635 100644 --- a/0x02/solutions/2753_1.cpp +++ b/0x02/solutions/2753_1.cpp @@ -4,8 +4,7 @@ #include using namespace std; -int main() -{ +int main(void){ ios::sync_with_stdio(0); cin.tie(0); From 69e4868deab6d217f4c8bd3cc2cf6b73641adbe9 Mon Sep 17 00:00:00 2001 From: qwer1234qwer1234qwer Date: Sun, 1 Jun 2025 01:26:15 +0900 Subject: [PATCH 3/3] Update 2753_1.cpp --- 0x02/solutions/2753_1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/0x02/solutions/2753_1.cpp b/0x02/solutions/2753_1.cpp index fbb98635..ff6499e8 100644 --- a/0x02/solutions/2753_1.cpp +++ b/0x02/solutions/2753_1.cpp @@ -1,6 +1,6 @@ // Authored by : - // Co-authored by : - -//http://boj.kr/4b1e161ffc9b4281ab7dad4d1b6cbbd9 +//http://boj.kr/c90b49f6a233442f8d300e0e4cd3a2e2 #include using namespace std;