add codeforces solutions folder

This commit is contained in:
2026-03-05 19:55:52 +05:30
parent 77ff815f38
commit e698c35654
20 changed files with 778 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
class Solution{
public :
vector<string> readBinaryWatch(int turnedOn){
vector<string> ans;
for(int h=0;h<12;++h){
for(int m = 0;m<60;++m){
if(__builtin_popcount(h)+ __builtin_popcount(m) == turnedOn){
ans.push_back(to_string(h)+":"+(m<10?"0":"")+to_string(m));
}
}
}
return ans;
}
}