let's start Code

Showing posts with label Codechef. Show all posts
Showing posts with label Codechef. Show all posts

Sereja and Salesman

Problem Link: SEAKAM Topic: Bitmask Dp Explanation: GKCS implementation: This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. ...
Share:

GCD and LCM

GCD and LCM This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters ...
Share:

SUBXOR - SubXor

SUBXOR - SubXor Subarray Xor Topic: Trie Tree  Explanation  Solution 01: //copy 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 ...
Share:

Max and Electrical Panel

Max and Electrical Panel  Solution 01: //copy 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 #include<bits/stdc++.h> using namespace std; int main() { int n,c; cin >> n >>c; int lo = 0, hi = n, res = 0; while(hi-lo > 1){ if(res)cout << 2<<endl<<flush; ...
Share:

About

let's start CODE

Popular Posts

Categories