当前位置:网站首页>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
边栏推荐
- Computer screenshot how to cut the mouse in
- Thinkphp5 log file contains trick
- In situ merging of two arrays with two pointers
- Pseudocode writing specification
- 分布式--OpenResty+lua+Redis
- 2021-08-07 native and package types
- 1131: genetic correlation
- ES6 notes
- 机械工程师面试的几个问题,你能答上来几个?
- 先锋期货安全么?现在期货开户都是哪些流程?期货手续费怎么降低?
猜你喜欢
Matlab construction operation example
XSS challenge (6-10) more detailed answers
Shift operator (detailed)
Using docker to manage MySQL services under Windows
CCF image rotation (Full Score code + problem solving idea) 201503-01
Thinkphp5 log file contains trick
Svn password forgetting solution
Ctfshow getting started with the web (ThinkPHP topic)
CCF date calculation (Full Score code + skill summary) February 2, 2015
PS dynamic drawing
随机推荐
CCF sequence segmentation (Full Score code + problem solving idea) 201509 -1
[extensive reading of papers] attributes guided facial image completion
CCF call auction (full mark code + problem solving ideas + skill summary) 201412 - 3
ctfshow nodejs
V3 02——What‘s new in Chrome extensions
IO interview questions
ThinkPHP show method parameter controllable command execution
Add attributes to multimode
1130: find the first character that appears only once
V3 03_ Getting started
[buuctf] [actf2020 freshman competition]include
How many questions can you answer for the interview of Mechanical Engineer?
CCF window (Full Score code + problem solving idea) March 2, 2014
1131: genetic correlation
Using docker to manage MySQL services under Windows
Lost connection to the flow server (0 retries remaining): |Out of retries, exiting! Error reporting solution (flow)
XSS challenge (6-10) more detailed answers
数控加工中心打刀缸工作原理及故障处理
catkin_ Make reports an error, transfers the location of the workspace, and uses other people's workspace files to cause compilation errors
Hbuilder most commonly used and full shortcut key set