当前位置:网站首页>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

边栏推荐
- Pytorch模型训练到哪里找预训练模型?
- 【论文写作】英文论文写作指南
- MySQL monitoring 2
- C language selection, loop overview
- Machine learning notes: time series decomposition STL
- STC89C52 single chip microcomputer simple calculator design and code demonstration
- 【机器学习Q&A】准确率、精确率、召回率、ROC和AUC
- win10子系统 WSL如果root和其他用户的密码都忘记的修复方法
- Reading is the cheapest noble
- Statsmodels notes STL
猜你喜欢

Ctfshow competition original title 680-695

Precautions for postoperative fundus hemorrhage / / must see every day

Cookie加密13

Machinery -- nx2007 (UG) finite element analysis tutorial 1 -- simple object

TP-LINK configure WiFi authentication method for wireless Internet SMS

Interface Association of postman

Spark 离线开发框架设计与实现

Understand the module function of MES management system

Ansible ad-hoc temporary command

Pytroch Learning Notes 6: NN network layer convolution layer
随机推荐
How to deal with occasional bugs?
js Array.from()的5个便捷应用
Design and implementation of spark offline development framework
Embedded exit (review and release)
What is digital garbage? Follow the world's first AI artist to explore meta carbon Art
OpenCV和Image之间的转换(亲测有效)
Pytroch Learning Notes 6: NN network layer convolution layer
win10子系统 WSL如果root和其他用户的密码都忘记的修复方法
C language final without failing (Part 1)
C语言 换个格式输出整数
[Thesis Writing] English thesis writing guide
cookie加密9
STC89C52 single chip microcomputer simple calculator design and code demonstration
GeoTools:WKT、GeoJson、Feature、FeatureCollection相互转换常用工具
JS prototype and prototype chain (Lantern Festival meal)
Application of pointer in STC89C52 single chip microcomputer and demonstration of practical cases
What should be paid attention to in the design and production of the Urban Planning Museum
Quality management of functional modules of MES management system
The first technology podcast month will be launched soon
Embedded test template