bjfu---1196fudq and Digital

2024-01-21 10:48
文章标签 digital bjfu 1196fudq

本文主要是介绍bjfu---1196fudq and Digital,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

fudq and Digital

时间限制(普通/Java):1000MS/3000MS          运行内存限制:65536KByte
总提交:18            测试通过:2

描述

The other day, AC Goddness asked fudq for help as she was in trouble in a easy problem.The problem requires to find the minimum nonnegative integer M when given an integer N.M meets this condition:
(M^2)%(10^x)=N (x=0,1,2,3...).
fudq don't want to lose face in front of AC Goddness.So can you help fudq?

输入

The first line has an integer T(T <= 1000), the number of test cases.
For each case, each line contains one integer N(0 <= N <= 1,000,000,000), indicating the given number.

输出

For each case output the answer if it exists, otherwise print “Sorry, I tried.”.

样例输入

3
3
21
25

样例输出

Sorry, I tried.
11
5

提示

 

M^2 = M*M;

Code:

#include <stdio.h>

这篇关于bjfu---1196fudq and Digital的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/629276

相关文章

语音信号处理2:数字滤波器 Digital Filters

参考: The Scientist and Engineer’s Guide to Digital Signal Processing Multimedia Signal Processing: Theory and Applications in Speech, Music and Communications Classification 欲知细节,先识大体,看看数字滤波器都有哪些种类吧

error:0308010C:digital envelope routines::unsupported【超详细图解】

目录 一、报错信息 二、分析原因 三、解决方案 一、报错信息 二、分析原因 node.js 18 不兼容oppsll,node.js v17以上版本中最近发布的OpenSSL3.0, 而OpenSSL3.0对允许算法和密钥大小增加了严格的限制 三、解决方案 方案1:打开终端,直接输入 Linux & Mac OS: export NODE_OPTIONS=

1784:Digital Roots

题目描述 The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value conta

0.3 数字电视(Digital television)简介

0.3 数字电视简介 数字电视是指采集、播出、传输、接收等环节中全面采用数字信号的电视系统。现代数字电视分辨率比模拟电视更高。通常使用宽屏(宽高比为 16:9),与模拟电视的窄屏(宽高比为 4:3)形成鲜明对比。 数字电视标准 世界不同地区采用了不同的数字电视广播标准;以下是广泛使用的标准: DVB(Digital Video Broadcasting),被欧洲、非洲、亚洲和澳大利亚等约60

The first experiment about digital filter 软件滤波初体验

软件滤波初体验 选择最好玩的方波 预设波形如下: 频谱,你懂的: 如果只对低频部分进行inverse-DFT,那么: 当 for frequency = -(circle/20):(circle/20)-1 取circle/20以下的部分,低频断: nice! 如果此时放宽滤波频段至circle/8 一个高频信号就会叠加

数字取证技术(Digital Forensics Technology)实验课II

@数字取证技术(Digital Forensics Technology)实验课II 本文是我本学期的教学课题目,不包含任何博客知识分享,无关的读者可忽略; 实验练习题 (♞思考):请对工作邮件进行签名;“problem3_1.txt"里存储的是由John Doe撰写的真实的邮件,而"problem3_2.txt"里存储的是其他人恶意伪造的邮件(关键时间作了篡改);内容分别如下,请

Vue Node 编译报错:digital envelope routines::unsupported

错误内容 Error: error:0308010C:digital envelope routines::unsupportedat new Hash (node:internal/crypto/hash:67:19)at Object.createHash (node:crypto:130:10) 错误原因 因为 nodeJs v17 版本发布了 OpenSSL3.0 对算法和秘钥大小

外汇天眼:野村证券和Laser Digital与GMO互联网集团合作发行日元和美元稳定币

野村控股和Laser Digital将与GMO互联网集团合作,在日本探索发行日元和美元稳定币。GMO互联网集团的美国子公司GMO-Z.com Trust Company, Inc. 在纽约州金融服务部的监管框架下,在以太坊、恒星币和Solana等主要区块链上发行稳定币。GMO-Z.com Trust Company 运营着一个支持数字货币安全管理的强大系统;该系统支持多个技术平台,并包括监控货币交

Digital Image Processing System(DIPS)

数字图像处理系统  Digital Image Processing System(DIPS) 早前版本: ​​​​​​​DIPS_YTPC OCR-CSDN博客

数字水印 | 图像标准化论文:Digital Watermarking Robust to Geometric Distortions(一)

目录 II Watermark Based on Image NormalizationA 图像的矩和仿射变换B 图像的标准化 🤖原文: Digital Watermarking Robust to Geometric Distortions 🤖前言: 这是一篇 2005 年的 SCI 一区 + CCF-A,但是网上关于它的讲解貌似挺少的。文中提出了两种数字水印方