简体中文
Telegram

帖子print(sum(int(i) for i in input().split() if int(i)<0))

2025年1月19日
D
Deloitte | COGNIZANT | IBM | CAPGEMINI
print(sum(int(i) for i in input().split() if int(i)<0)) #sumofnegativenumbers
1.1K ·

信息流中的邻近内容

DDeloitte | COGNIZANT | IBM | CAPGEMINIdef solve(s): for i in range(1, len(s)): s1, s2 = s[:i], s[i:] if s1.count('a') == len(s1) and s2.count('b') == len(s2): return True return False n=int(input())DDeloitte | COGNIZANT | IBM | CAPGEMINIn=int(input()) arr=[int(i) for i in input().split()] p=[i for i in arr if i>0] mid=len(p)//2 if mid%2==0:print(p[mid-1]) else:print(p[mid]) #positviemidindex
这条消息
DDeloitte | COGNIZANT | IBM | CAPGEMINIx,y,z=map(int,input().split()) print(sum(sorted([x,y,z])[1:])) #sum_of_maximum_two_numbersDDeloitte | COGNIZANT | IBM | CAPGEMINIWipro 12 pm ✅✅

来自搜索索引的公开信息流 ChatCrawler ——“公开 Telegram 的 Google”;随着该社群被抓取而更新。 时间为 UTC。

仅限公开内容,使用 Telegram 官方 API。 关于 · 常见问题 · 索引限制 · 移除页面 · 目录 · 搜索 · 计算方法