首页 > 不要三句号的歪
头像 柚茶_Rola
发表于 2025-04-19 16:14:39
ls = input().split(',') #print(ls) # ['2', '3', '...', '7'] b = int(ls[1]) c = int(ls[-1]) print(c-b-1)
头像 妙一zy
发表于 2024-11-25 18:38:12
#include #include<string.h> using namespace std; //#define N 1000 int g[3]; int main(){ string a; cin>>a; int k=0; for(int i=0;i<a.size 展开全文
头像 hnust_shuaizhenyu
发表于 2025-07-05 15:47:47
#include <iostream> using namespace std; using ull = unsigned long long; int main() { ull a, b, c; scanf("%llu,%llu,...,%llu" 展开全文
头像 牛客9527员工
发表于 2025-04-23 17:01:35
#include <stdio.h> #include <string.h> int main() { char s[21]; scanf("%s",s); int count = 0; long long int num 展开全文
头像 在吵架的小辣鸡很糊涂
发表于 2025-08-02 17:54:42
#include <iostream> using namespace std; int main() { long int a, b, c; #pragma warning(disable : 4996) scanf("%ld,%ld,...,%ld", &a 展开全文
头像 会编程的猕猴桃被加薪
发表于 2025-10-24 15:52:56
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner sc=n 展开全文
头像 湘大蒟蒻猛攻985
发表于 2026-01-04 17:24:29
#include <iostream> #include <vector> using namespace std; //思路:存入字符串string,遇到",",提取两个逗号之间的数字,遇到"."跳过即可 //再对存入的数字,找到& 展开全文
头像 在查重的太平湖水怪很放浪
发表于 2025-11-10 16:18:43
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner sc = 展开全文
头像 龙灬胆
发表于 2026-01-17 13:36:06
while True: try: str_list = input().split(',') print(int(str_list[-1]) - int(str_list[-3]) - 1) except Exception as e: 展开全文
头像 小蜗牛孤寡孤寡
发表于 2026-01-30 09:56:56
s=input() lst=s.split(",") res=0 for i in range(1,len(lst)-1): if lst[i]=="...": n=int(lst[i-1]) m=int(lst[i+1 展开全文