打开关闭网格线
grid on
grid off
设置x,y轴的网格线坐标
set(gca,'YTickMode','manual','YTick',[-16384,0,16384])
set(gca,'XTickMode','manual','XTick',[-21846,-10922,0,10922,21846])
阅读全文
Compiler Warnings for Objective-C Developers
Compiler warnings are one of the most helpful tools for developers. The compiler can not only warn you about obvious mistakes (such as a method you forgot to implement); it also identifies many code patterns that, though syntactically correct, are potentially
dangerous (like signed/unsigned conversion) or just plain wrong (such as mismatched format specifiers in a format string).
Both the Clang compiler frontend and
Apple’s default Xcode p......
阅读全文
C. DNA Alignment
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Vasya became interested in bioinformatics. He's going to write an article about similar cyclic DNA sequences, so he invented a new method for determining the similarity of cyclic sequences.
Let's assume that strings s and t have
the same length n, then the function h(s, t) is
defined as the number of positions in which the respective symbols of s a......
阅读全文