NOI题库 7654 等差数列末项计算
生活随笔
收集整理的這篇文章主要介紹了
NOI题库 7654 等差数列末项计算
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
http://noi.openjudge.cn/math/7654/
/* NOI題庫 7654 等差數列末項計算 http://noi.openjudge.cn/math/7654/ */ #include <bits/stdc++.h> using namespace std; int main() {int a1,a2,n,d;cin>>a1>>a2>>n;d=a2-a1;cout<<(a1+(n-1)*d)<<endl;return 0; }?
?
?
python && C++ NOI編程題解1.1
https://blog.csdn.net/yigezzchengxuyuan/article/details/86582640?
1.4 編程基礎之邏輯表達式與條件分支 python版.rar
https://download.csdn.net/download/dllglvzhenfeng/45531036
總結
以上是生活随笔為你收集整理的NOI题库 7654 等差数列末项计算的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 第11课 尼克与强盗 《小学生C++趣味
- 下一篇: P5704 【深基2.例6】字母转换(p