Moliu Queries (in c++) When a problem author runs out of good ideas for contest…
Jump to turn (8)
- 1Moliu Queries (in c++) When a problem author runs out of good ideas for contest
- 2program.cpp:10:32: error: extended character ‘ is not valid in an identifier 10
- 3so what's the corrected code
- 4program.cpp:10:36: error: extended character ‘ is not valid in an identifier 10
- 510 36 extended character ‘ is not valid in an identifier 10 36 extended characte
- 610 36 extended character ‘ is not valid in an identifier 10 36 ‘‘0’’ was not dec
- 710 36 extended character ‘ is not valid in an identifier 10 36 ‘‘0’’ was not dec
- 8so what's the corrected code
- User
Moliu Queries (in c++)
When a problem author runs out of good ideas for contest problems, (s)he can always produce tasks in the form "given a sequence, perform operations ABC, answer queries XYZ". This task is exactly one of these.
You are given a 01-string (a string containing characters '0' and '1' only) of length N . The positions of the characters are 1-based, numbered from 1 to N , from left to right. The i t h character of the string is denoted s [ i ] . You have to perform Q operations, each of one of the following two types: