Avatar 👋

H2

Ph.D. Candidate @ PKU · WebGPU · Gaussian Splatting · OI/ACM · Computer Graphics · Agent for SE/Science · 📧 maghsk2017@gmail.com

  1. 🏆 OI 题解
  2. 💡 技术
  3. Archives
  4. 🔧 运维
  5. 🐍 计算概论C
  6. Search
  7. 🌐 收藏
  8. 🏠 Homepage
    1. Dark Mode
计算概论C

字符串中的整数求和

Nov 01, 2023
1 minute read

所属作业: hw2 算法: 顺序

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
a, b = input().split()
# a := '12B'
# b := '34D'

a = int(a[:2])
b = int(b[:2])
# a := 12
# b := 34

print(a + b)
计算概论C Python

Related content

人民币支付

凯撒密码

分离整数的各个数位

判断一个数能否同时被3和5整除

判断数正负

© 2016 - 2026 H2
Built with Hugo
Theme Stack designed by Jimmy