当前位置:网站首页>Derivation of univariate polynomial in C language
Derivation of univariate polynomial in C language
2022-06-30 01:31:00 【Martin の Blog】

Algorithm design ideas
- The input character , If input enter is detected , Then stop the cycle , Execution procedure
- Derivation of two consecutive characters
- If the constant term is 0, The output “0 0”
Code
#include <stdio.h>
int main(){
int a=0, b=0, flag=0;
char ch;
do{
scanf("%d %d", &a, &b);
ch = getchar();
if(b == 0){
if(flag == 0){
printf("0 0");
}
}else{
if(flag == 0){
printf("%d %d", a*b, b-1);
flag = 1;
}else{
printf(" %d %d", a*b, b-1);
}
}
}while(ch != '\n');
return 0;
}
Running results

边栏推荐
- 工具与生活服务
- Machine learning notes: time series decomposition STL
- Application features and functions of painting Aquarium
- Mysql 监控1
- Application of pointer in STC89C52 single chip microcomputer and demonstration of practical cases
- How does webapi relate to the database of MS SQL?
- Mechanical --nx2007 (UG) -- gap analysis (interference inspection)
- The Web3 era is coming? Inventory of five Web3 representative projects | footprint analytics
- Design and implementation of spark offline development framework
- postman 之接口关联
猜你喜欢

Cookie加密13

C语言 一元多项式求导

Cookie encryption 9

JS content confusion, return content encryption

Resizekit2.net size and resolution independent

Cookie encryption 13

Ctfshow competition original title 680-695

STC89C52 single chip microcomputer simple calculator design and code demonstration

js逆向请求参数加密:
![[535. encryption and decryption of tinyurl]](/img/b7/7748febe30852ca428fe86b045e9ca.png)
[535. encryption and decryption of tinyurl]
随机推荐
Some thoughts on small program subcontracting and verification of uiniapp subcontracting optimization logic
【二叉树】最大二叉树 II
Precautions for postoperative fundus hemorrhage / / must see every day
JS reverse request parameter encryption:
C语言 说反话
Unity2D--给动画添加关键帧并绑定事件
C语言 一元多项式求导
[mrctf2020]ezpop-1 | PHP serialization
The unity editor randomly generates objects. After changing the scene, the problem of object loss is solved
ctfshow 大赛原题 680-695
ES6 one line code for array de duplication
I, 33 years old, ByteDance test development, unveiled the real income of Beijing "test post"
C language selection, loop overview
Database application
[Thesis Writing] English thesis writing guide
win10子系统 WSL如果root和其他用户的密码都忘记的修复方法
How to seamlessly transition from traditional microservice framework to service grid ASM
MySQL monitoring 3
js返回内容被unicode编码
【机器学习Q&A】数据抽样和模型验证方法、超参数调优以及过拟合和欠拟合问题