当前位置:网站首页>Matlab judges the number of same purchases
Matlab judges the number of same purchases
2022-06-30 14:53:00 【Tongxuan Shangjing programmer】
Problem description : Define a program to judge integers x Whether it is an isomorphic number . If it's an isomorphic number , Program output 1; Otherwise output 0. explain : So-called “ Isomorphic number ” It means such a number , Positive integer n If it's the tail of the square , said n Is isomorphic .
clc;clear;
n=input(' Please enter n:');t=n^2;
s=ceil(log10(n));
n=fliplr(num2str(n));m=fliplr(num2str(t));
if (n(:,1:s)==m(:,1:s))
disp(1);
else
disp(0);
end
边栏推荐
- Double pointer palindrome string
- Thoughts on the security of a PHP file name regular verification
- Att & CK red team evaluation field (I)
- [extensive reading of papers] sentimental analysis of online reviews with a hierarchical attention network
- In situ merging of two arrays with two pointers
- Thinkphp5 log file contains trick
- Color classification of sorting
- Win10 one click Reset win10 to solve all system bugs without deleting any files and Applications
- [buuctf] [actf2020 freshman competition]include
- 立式加工中心的数控加工对刀具使用基本要求
猜你喜欢

Matlab construction operation example
![[buuctf] [geek challenge 2019] secret file](/img/00/23bebd013eb4035555c0057725e3c4.jpg)
[buuctf] [geek challenge 2019] secret file

CCF image rotation (Full Score code + problem solving idea) 201503-01

Detailed explanation of settimeout() and setinterval()

Svn password forgetting solution
![[geek challenge 2019] PHP problem solving record](/img/bf/038082e8ee1c91eaf6e35add39f760.jpg)
[geek challenge 2019] PHP problem solving record

LIS error: this configuration section cannot be used in this path

The first dark spring cup dnuictf

KnightCTF WEB

CCF command line options (Full Score code + problem solving ideas + skill summary) March 3, 2014
随机推荐
Win10 backup backup shows that creating a shared protection point on the shadow failed
How to use Alibaba Vector Icon
1136: password translation
Pseudocode writing specification
Implement a long-click list pop-up box on apiccloud
CCF drawing (full mark code + problem solving ideas + skill summary) February 2, 2014
PS cutting height 1px, Y-axis tiling background image problem
V3_ Chrome extended Chinese translation document V3 directory
Problem: wechat developer tool visitor mode cannot use this function
分布式--OpenResty+lua+Redis
One dimensional and two dimensional array addresses
Solution cannot use a scalar value as an array
How to program and process such parts?
Add attributes to multimode
JS array
[buuctf] [actf2020 freshman competition]include
PHP generate images into Base64
Programming exercises: special numbers (problem solving ideas + code implementation)
The difference between settimeout() and setinterval()
CCF numerical sorting (Full Score code + problem solving ideas + skill summary) 201503-2