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
// Problem A - Nineteen | |
// http://codeforces.com/contest/393/problem/A | |
#include <string> | |
#include <cstdlib> | |
#include <iostream> | |
#include <algorithm> | |
int cnt[256]; |
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
% a : b 可以得到一个从 a 到 b 的整数组成的行向量,其中 a、b 是整数: | |
1 : 3 | |
ans = | |
1 2 3 | |
% a : b : c 可以得到一个从 a 到 c 并且相隔 b 的行向量,其中 a、b、c 都是实数: | |
1 : 2 : 10 |
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
% 定义一个行向量: | |
x = [1 2 3] | |
x = | |
1 2 3 | |
% 定义一个列向量: | |
x = [1; 2; 3;] |
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
<UserControl | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:my="clr-namespace:MyProject" | |
x:Class="MyProject.MyUserControl" | |
mc:Ignorable="d" d:DesignHeight="100" d:DesignWidth="640" | |
> |
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
public partial class MyUserControl : UserControl | |
{ | |
// The dependency property definition. | |
public static readonly DependencyProperty MyStateProperty = | |
DependencyProperty.Register | |
( | |
"MyState", // Name of dependency property. | |
typeof(string), // Type of dependency property. | |
typeof(MyUserControl), // Type of the class who owns the dependency property. | |
new FrameworkPropertyMetadata |
NewerOlder