diff --git a/src/week4/BOJ1285/BOJ1285_V3.cpp b/src/week4/BOJ1285/BOJ1285_V3.cpp new file mode 100644 index 0000000..0bcc304 --- /dev/null +++ b/src/week4/BOJ1285/BOJ1285_V3.cpp @@ -0,0 +1,52 @@ +#include +using namespace std; +int N; +int bit_arr[21]; +int ret = INT_MAX; +int calculate() { + int ret_val = 0; + for (int i=0; i> N; + + for (int i = 0; i < N; i++) { + string s; + cin >> s; + int num = 1; + for (int j = 0; j < s.length(); j++) { + if (s[j] == 'T') bit_arr[i] |= (1 << (num-1)); + num++; + } + } + + solve(0); + + cout << ret << '\n'; + return 0; +} \ No newline at end of file