当前位置:网站首页>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
边栏推荐
- Att & CK red team evaluation field (I)
- Upgrade centos7 mysql5.5 to mysql5.7 non RPM in the form of tar package
- Minimum covering substring of two pointers
- Thinkphp5 log file contains trick
- Double pointer circular linked list
- In situ merging of two arrays with two pointers
- The first dark spring cup dnuictf
- [extensive reading of papers] multimodal attribute extraction
- Using member variables and member functions of a class
- Sum of squares of two pointers
猜你喜欢

JS to realize simple lottery function

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

The first dark spring cup dnuictf

Determine the number of digits of an integer in MATLAB (one line of code)

Error $(...) size is not a function

How to use Alibaba Vector Icon

PS tip: the video frame to Layer command cannot be completed because dynamiclink is not available

val_ Loss decreases first and then increases or does not decrease but only increases

DiceCTF - knock-knock

Win10 one click Reset win10 to solve all system bugs without deleting any files and Applications
随机推荐
jsPlumb. Deleteeveryconnection is not a function & jsplumb clear canvas jsplumb delete all nodes and all connections
文本匹配——【NAACL 2022】GPL
Not satisfied with markdown native code block style? Try this beautify code screenshot tool~~
高清机械原理 · 机械设计经典动图
CCF date calculation (Full Score code + skill summary) February 2, 2015
Greedy interval problem (5)
【BUUCTF】 Have Fun
CCF access control system (Full Score code + problem solving idea) 201412-1
2021 geek challenge Web
CCF sequence segmentation (Full Score code + problem solving idea) 201509 -1
[extensive reading of papers] attributes guided facial image completion
Basic learning notes of C language
Win10 one click Reset win10 to solve all system bugs without deleting any files and Applications
1 figure to explain the difference and connection between nodejs and JS
ThinkPHP v3.2 comment annotation injection write shell
V3 03_ Getting started
立式加工中心调试的步骤
Lihongyi machine learning 2020 homework summary
Pseudocode writing specification
Ctfshow getting started with the web (ThinkPHP topic)