Advertisement

Python OJ测试和分析常见输入输出(分析)

阅读量:

1. A + B

image-20240314161846282
复制代码
    while True:
    try:
        a, b = map(int, input().split())
        print(a + b)
    except EOFError:
        break
    
    
    
      
      
      
      
      
      
      
    
复制代码
    import sys
    
    for line in sys.stdin:
    a, b = map(int, line.split())
    print(a + b)
    
    
      
      
      
      
      
    

2.A+B(2)

![image-20240314162005363](https://ad.itadn.com/c/weblog/blog-img/images/2025-05-31/dT9ijEz

全部评论 (0)

还没有任何评论哟~