B. Eugeny and Play List

探讨音乐爱好者Eugeny如何组织和聆听他的音乐播放列表,包括每首歌曲的重复次数和持续时间,并通过时间戳识别播放的歌曲。本文详细解释了如何计算特定时间点播放的歌曲编号。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

B. Eugeny and Play List
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

Eugeny loves listening to music. He has n songs in his play list. We know that song number i has the duration of ti minutes. Eugeny listens to each song, perhaps more than once. He listens to song number i ci times. Eugeny's play list is organized as follows: first song number 1 plays c1 times, then song number 2 plays c2 times, ..., in the end the song number n plays cn times.

Eugeny took a piece of paper and wrote out m moments of time when he liked a song. Now for each such moment he wants to know the number of the song that played at that moment. The moment x means that Eugeny wants to know which song was playing during the x-th minute of his listening to the play list.

Help Eugeny and calculate the required numbers of songs.

Input

The first line contains two integers nm (1 ≤ n, m ≤ 105). The next n lines contain pairs of integers. The i-th line contains integers ci, ti(1 ≤ ci, ti ≤ 109) — the description of the play list. It is guaranteed that the play list's total duration doesn't exceed 109 .

The next line contains m positive integers v1, v2, ..., vm, that describe the moments Eugeny has written out. It is guaranteed that there isn't such moment of time vi, when the music doesn't play any longer. It is guaranteed that vi < vi + 1 (i < m).

The moment of time vi means that Eugeny wants to know which song was playing during the vi-th munite from the start of listening to the playlist.

Output

Print m integers — the i-th number must equal the number of the song that was playing during the vi-th minute after Eugeny started listening to the play list.

Sample test(s)
input
1 2
2 8
1 16
output
1
1
input
4 9
1 2
2 1
1 1
2 2
1 2 3 4 5 6 7 8 9
output
1
1
2
2
3
4
4
4
4
这题还是比较简单,就是用一般的思路会超时,下面就说下题意吧,估计有些人和我一样看个题目都要半天,谁叫俺们英语差啊.......
题目大概意思是:Eugeny喜欢听歌,他听的歌有些不只听一次,他听的方式是这样的,第一首歌听 c1而且每首歌听t1分钟,第二首歌听 c2而且每首歌听t2分钟....第N首歌听 cn而且每首歌听tn分钟,输入n,m下面跟着n行,每行有两个整数ci, ti意思前面说了然后下面一行有m个整数每个整数代表一个时刻,问在每个时刻,Eugeny在听第几首歌并且输出它.
估计题目懂了,你们也应该能敲出代码来,下面废话不多说,直接看代码吧
代码:
#include<iostream>
const int MAX=100001;
int x[MAX];
int y[MAX];
__int32 z[MAX]={0};//初始化0
using namespace std;
int main()
{
__int32 n,m,i,j,a,p;
cin>>n>>m;
p=1;
cin>>x[1]>>y[1];
z[1]=x[1]*y[1];
for(i=2;i<=n;i++)
{
cin>>x[i]>>y[i];
z[i]+=x[i]*y[i]+z[i-1];
}
for(j=1;j<=m;j++)
{
cin>>a;
while(a>z[p])
p++;
cout<<p<<endl;
}
return 0;
}//如果有问题,或有什么疑惑,可以在评论中提出,小子我看到一定尽力解答
Welcome to Ubuntu 24.04.2 LTS (GNU/Linux 6.8.0-60-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/pro System information as of Wed May 28 02:10:15 UTC 2025 System load: 0.0 Processes: 176 Usage of /: 1.9% of 386.42GB Users logged in: 1 Memory usage: 1% IPv4 address for eth0: 185.199.52.219 Swap usage: 0% IPv6 address for eth0: 2a02:4780:12:27e7::1 Expanded Security Maintenance for Applications is not enabled. 0 updates can be applied immediately. 14 additional security updates can be applied with ESM Apps. Learn more about enabling ESM Apps service at https://ubuntu.com/esm Last login: Wed May 28 02:08:30 2025 from 169.254.0.1 root@srv771551:~# ^C root@srv771551:~# which tabby # 应输出安装路径 tabby --version Command 'tabby' not found, did you mean: command 'ktabby' from deb kgames (2.3-1) Try: apt install <deb name> root@srv771551:~# sudo snap install tabby error: snap "tabby" not found root@srv771551:~# wget https://github.com/Eugeny/tabby/releases/download/v1.0.209/tabby-1.0.209-linux-x64.deb --2025-05-28 02:14:56-- https://github.com/Eugeny/tabby/releases/download/v1.0.209/tabby-1.0.209-linux-x64.deb Resolving github.com (github.com)... 20.207.73.82 Connecting to github.com (github.com)|20.207.73.82|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/77213120/49d65aef-dda0-40ec-8f6c-bb2f59b7b2ef?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250528%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250528T021457Z&X-Amz-Expires=300&X-Amz-Signature=16929604a9e7523d5674ba06f7675fd4c04bf70e8b3d21ddf89c85c14d2a1c45&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dtabby-1.0.209-linux-x64.deb&response-content-type=application%2Foctet-stream [following] --2025-05-28 02:14:57-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/77213120/49d65aef-dda0-40ec-8f6c-bb2f59b7b2ef?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250528%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250528T021457Z&X-Amz-Expires=300&X-Amz-Signature=16929604a9e7523d5674ba06f7675fd4c04bf70e8b3d21ddf89c85c14d2a1c45&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dtabby-1.0.209-linux-x64.deb&response-content-type=application%2Foctet-stream Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.109.133, ... Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 90647356 (86M) [application/octet-stream] Saving to: 'tabby-1.0.209-linux-x64.deb' tabby-1.0.209-linux-x64.deb 100%[=================================================================================================================================>] 86.45M 6.40MB/s in 13s 2025-05-28 02:15:11 (6.84 MB/s) - 'tabby-1.0.209-linux-x64.deb' saved [90647356/90647356] root@srv771551:~# sudo apt-get install gdebi Reading package lists... Done Building dependency tree... Done Reading state information... Done gdebi is already the newest version (0.9.5.7+nmu7). gdebi set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@srv771551:~# sudo gdebi tabby-*.deb /usr/bin/gdebi:113: SyntaxWarning: invalid escape sequence '\S' c = findall("[[(](\S+)/\S+[])]", msg)[0].lower() Reading package lists... Done Building dependency tree... Done Reading state information... Done Reading state information... Done This package is uninstallable Dependency is not satisfiable: gconf2 root@srv771551:~# sudo gdebi tabby-*.deb /usr/bin/gdebi:113: SyntaxWarning: invalid escape sequence '\S' c = findall("[[(](\S+)/\S+[])]", msg)[0].lower() Reading package lists... Done Building dependency tree... Done Reading state information... Done Reading state information... Done This package is uninstallable Dependency is not satisfiable: gconf2 root@srv771551:~# wget https://github.com/Eugeny/tabby/releases/download/v1.0.209/tabby-1.0.209-linux-x64.AppImage --2025-05-28 02:16:02-- https://github.com/Eugeny/tabby/releases/download/v1.0.209/tabby-1.0.209-linux-x64.AppImage Resolving github.com (github.com)... 20.207.73.82 Connecting to github.com (github.com)|20.207.73.82|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/77213120/6838174f-aae8-46a8-875f-4adc31805938?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250528%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250528T021602Z&X-Amz-Expires=300&X-Amz-Signature=366b06d105ad23c750d2b24dfa63c80757d01eaaa1a2827052e5bdca604a9001&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dtabby-1.0.209-linux-x64.AppImage&response-content-type=application%2Foctet-stream [following] --2025-05-28 02:16:02-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/77213120/6838174f-aae8-46a8-875f-4adc31805938?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250528%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250528T021602Z&X-Amz-Expires=300&X-Amz-Signature=366b06d105ad23c750d2b24dfa63c80757d01eaaa1a2827052e5bdca604a9001&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dtabby-1.0.209-linux-x64.AppImage&response-content-type=application%2Foctet-stream Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.108.133, 185.199.111.133, ... Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 134111099 (128M) [application/octet-stream] Saving to: 'tabby-1.0.209-linux-x64.AppImage' tabby-1.0.209-linux-x64.AppImage 100%[=================================================================================================================================>] 127.90M 7.66MB/s in 19s 2025-05-28 02:16:22 (6.67 MB/s) - 'tabby-1.0.209-linux-x64.AppImage' saved [134111099/134111099] root@srv771551:~# wget https://github.com/Eugeny/tabby/releases/download/v1.0.209/tabby-1.0.209-linux-x64.AppImage --2025-05-28 02:16:26-- https://github.com/Eugeny/tabby/releases/download/v1.0.209/tabby-1.0.209-linux-x64.AppImage Resolving github.com (github.com)... 20.207.73.82 Connecting to github.com (github.com)|20.207.73.82|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/77213120/6838174f-aae8-46a8-875f-4adc31805938?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250528%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250528T021602Z&X-Amz-Expires=300&X-Amz-Signature=366b06d105ad23c750d2b24dfa63c80757d01eaaa1a2827052e5bdca604a9001&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dtabby-1.0.209-linux-x64.AppImage&response-content-type=application%2Foctet-stream [following] --2025-05-28 02:16:26-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/77213120/6838174f-aae8-46a8-875f-4adc31805938?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250528%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250528T021602Z&X-Amz-Expires=300&X-Amz-Signature=366b06d105ad23c750d2b24dfa63c80757d01eaaa1a2827052e5bdca604a9001&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dtabby-1.0.209-linux-x64.AppImage&response-content-type=application%2Foctet-stream Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.109.133, ... Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 134111099 (128M) [application/octet-stream] Saving to: 'tabby-1.0.209-linux-x64.AppImage.1' tabby-1.0.209-linux-x64.AppImage.1 100%[=================================================================================================================================>] 127.90M 84.0MB/s in 1.5s 2025-05-28 02:16:29 (84.0 MB/s) - 'tabby-1.0.209-linux-x64.AppImage.1' saved [134111099/134111099] root@srv771551:~# chmod +x *.AppImage root@srv771551:~# which tabby # 应输出安装路径 tabby --version Command 'tabby' not found, did you mean: command 'ktabby' from deb kgames (2.3-1) Try: apt install <deb name> root@srv771551:~# ^C root@srv771551:~# ^C root@srv771551:~# wget https://github.com/Eugeny/tabby/releases/download/v1.0.209/tabby-1.0.209-linux-x64.AppImage --2025-05-28 02:18:08-- https://github.com/Eugeny/tabby/releases/download/v1.0.209/tabby-1.0.209-linux-x64.AppImage Resolving github.com (github.com)... 20.207.73.82 Connecting to github.com (github.com)|20.207.73.82|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/77213120/6838174f-aae8-46a8-875f-4adc31805938?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250528%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250528T021602Z&X-Amz-Expires=300&X-Amz-Signature=366b06d105ad23c750d2b24dfa63c80757d01eaaa1a2827052e5bdca604a9001&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dtabby-1.0.209-linux-x64.AppImage&response-content-type=application%2Foctet-stream [following] --2025-05-28 02:18:08-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/77213120/6838174f-aae8-46a8-875f-4adc31805938?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250528%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250528T021602Z&X-Amz-Expires=300&X-Amz-Signature=366b06d105ad23c750d2b24dfa63c80757d01eaaa1a2827052e5bdca604a9001&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dtabby-1.0.209-linux-x64.AppImage&response-content-type=application%2Foctet-stream Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.111.133, ... Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 134111099 (128M) [application/octet-stream] Saving to: 'tabby-1.0.209-linux-x64.AppImage.2' tabby-1.0.209-linux-x64.AppImage.2 100%[=================================================================================================================================>] 127.90M 49.2MB/s in 2.6s 2025-05-28 02:18:12 (49.2 MB/s) - 'tabby-1.0.209-linux-x64.AppImage.2' saved [134111099/134111099] root@srv771551:~# sudo apt install libfuse2 # AppImage运行必需的基础依赖[^2] Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'libfuse2t64' instead of 'libfuse2' libfuse2t64 is already the newest version (2.9.9-8.1build1). libfuse2t64 set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@srv771551:~# chmod +x tabby-*.AppImage root@srv771551:~# ./tabby-*.AppImage [0528/021833.570631:FATAL:electron_main_delegate.cc(294)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. Trace/breakpoint trap (core dumped) root@srv771551:~# # 将Tabby添加到应用程序菜单 sudo mkdir -p /usr/local/bin sudo mv tabby-*.AppImage /usr/local/bin/tabby root@srv771551:~# sudo apt install fuse3 Reading package lists... Done Building dependency tree... Done Reading state information... Done fuse3 is already the newest version (3.14.0-5build1). fuse3 set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@srv771551:~# sha256sum tabby-*.AppImage | grep $(curl -sL 发布页 | grep sha256) sha256sum: 'tabby-*.AppImage': No such file or directory Usage: grep [OPTION]... PATTERNS [FILE]... Try 'grep --help' for more information. root@srv771551:~# ^C root@srv771551:~# ^C root@srv771551:~#
05-29
root@srv771551:~# chmod +x *.AppImage root@srv771551:~# which tabby # 应输出安装路径 tabby --version Command 'tabby' not found, did you mean: command 'ktabby' from deb kgames (2.3-1) Try: apt install <deb name> root@srv771551:~# ^C root@srv771551:~# ^C root@srv771551:~# wget https://github.com/Eugeny/tabby/releases/download/v1.0.209/tabby-1.0.209-linux-x64.AppImage --2025-05-28 02:18:08-- https://github.com/Eugeny/tabby/releases/download/v1.0.209/tabby-1.0.209-linux-x64.AppImage Resolving github.com (github.com)... 20.207.73.82 Connecting to github.com (github.com)|20.207.73.82|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/77213120/6838174f-aae8-46a8-875f-4adc31805938?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250528%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250528T021602Z&X-Amz-Expires=300&X-Amz-Signature=366b06d105ad23c750d2b24dfa63c80757d01eaaa1a2827052e5bdca604a9001&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dtabby-1.0.209-linux-x64.AppImage&response-content-type=application%2Foctet-stream [following] --2025-05-28 02:18:08-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/77213120/6838174f-aae8-46a8-875f-4adc31805938?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250528%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250528T021602Z&X-Amz-Expires=300&X-Amz-Signature=366b06d105ad23c750d2b24dfa63c80757d01eaaa1a2827052e5bdca604a9001&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dtabby-1.0.209-linux-x64.AppImage&response-content-type=application%2Foctet-stream Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.111.133, ... Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 134111099 (128M) [application/octet-stream] Saving to: 'tabby-1.0.209-linux-x64.AppImage.2' tabby-1.0.209-linux-x64.AppImage.2 100%[=================================================================================================================================>] 127.90M 49.2MB/s in 2.6s 2025-05-28 02:18:12 (49.2 MB/s) - 'tabby-1.0.209-linux-x64.AppImage.2' saved [134111099/134111099] root@srv771551:~# sudo apt install libfuse2 # AppImage运行必需的基础依赖[^2] Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'libfuse2t64' instead of 'libfuse2' libfuse2t64 is already the newest version (2.9.9-8.1build1). libfuse2t64 set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@srv771551:~# chmod +x tabby-*.AppImage root@srv771551:~# ./tabby-*.AppImage [0528/021833.570631:FATAL:electron_main_delegate.cc(294)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. Trace/breakpoint trap (core dumped) root@srv771551:~# # 将Tabby添加到应用程序菜单 sudo mkdir -p /usr/local/bin sudo mv tabby-*.AppImage /usr/local/bin/tabby root@srv771551:~# sudo apt install fuse3 Reading package lists... Done Building dependency tree... Done Reading state information... Done fuse3 is already the newest version (3.14.0-5build1). fuse3 set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@srv771551:~# sha256sum tabby-*.AppImage | grep $(curl -sL 发布页 | grep sha256) sha256sum: 'tabby-*.AppImage': No such file or directory Usage: grep [OPTION]... PATTERNS [FILE]... Try 'grep --help' for more information. root@srv771551:~# ^C root@srv771551:~# ^C root@srv771551:~# # 启用universe仓库并安装gconf2 sudo add-apt-repository universe sudo apt update sudo apt install libgconf-2-4 # Ubuntu 24.04中替代旧版gconf2的兼容库[^2] Adding component(s) 'universe' to all repositories. Press [ENTER] to continue or Ctrl-c to cancel. Hit:1 https://repository.monarx.com/repository/ubuntu-noble noble InRelease Hit:2 http://in.archive.ubuntu.com/ubuntu noble InRelease Get:3 http://in.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB] Hit:4 http://in.archive.ubuntu.com/ubuntu noble-backports InRelease Hit:5 http://in.archive.ubuntu.com/ubuntu noble-security InRelease Fetched 126 kB in 1s (85.5 kB/s) Reading package lists... Done Hit:1 https://repository.monarx.com/repository/ubuntu-noble noble InRelease Hit:2 http://in.archive.ubuntu.com/ubuntu noble InRelease Hit:3 http://in.archive.ubuntu.com/ubuntu noble-updates InRelease Hit:4 http://in.archive.ubuntu.com/ubuntu noble-backports InRelease Hit:5 http://in.archive.ubuntu.com/ubuntu noble-security InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package libgconf-2-4 root@srv771551:~# # 下载最新AppImage(需替换版本号) wget https://github.com/Eugeny/tabby/releases/download/v1.0.209/tabby-1.0.209-linux-x64.AppImage # 安装运行时依赖 sudo apt install libfuse2 libgtk-3-0 libnss3 libasound2 # GUI应用基础依赖[^2] # 赋予执行权限 chmod +x tabby-*.AppImage --2025-05-28 02:21:43-- https://github.com/Eugeny/tabby/releases/download/v1.0.209/tabby-1.0.209-linux-x64.AppImage Resolving github.com (github.com)... 20.207.73.82 Connecting to github.com (github.com)|20.207.73.82|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/77213120/6838174f-aae8-46a8-875f-4adc31805938?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250528%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250528T022143Z&X-Amz-Expires=300&X-Amz-Signature=df4d6c5bf9de994902474c1591582aa3677b65da50a2235344d5f54aab0dbae4&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dtabby-1.0.209-linux-x64.AppImage&response-content-type=application%2Foctet-stream [following] --2025-05-28 02:21:43-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/77213120/6838174f-aae8-46a8-875f-4adc31805938?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250528%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250528T022143Z&X-Amz-Expires=300&X-Amz-Signature=df4d6c5bf9de994902474c1591582aa3677b65da50a2235344d5f54aab0dbae4&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dtabby-1.0.209-linux-x64.AppImage&response-content-type=application%2Foctet-stream Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.111.133, ... Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 134111099 (128M) [application/octet-stream] Saving to: 'tabby-1.0.209-linux-x64.AppImage' tabby-1.0.209-linux-x64.AppImage 100%[================================================================================================================================>] 127.90M 42.1MB/s in 3.0s 2025-05-28 02:21:47 (42.1 MB/s) - 'tabby-1.0.209-linux-x64.AppImage' saved [134111099/134111099] Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'libfuse2t64' instead of 'libfuse2' Note, selecting 'libgtk-3-0t64' instead of 'libgtk-3-0' Package libasound2 is a virtual package provided by: liboss4-salsa-asound2 4.2-build2020-1ubuntu3 libasound2t64 1.2.11-1build2 (= 1.2.11-1build2) You should explicitly select one to install. E: Package 'libasound2' has no installation candidate root@srv771551:~# # 以普通用户身份运行(推荐) ./tabby-*.AppImage --no-sandbox # 若必须使用root: echo 'alias tabby="~/tabby-*.AppImage --no-sandbox"' >> ~/.bashrc source ~/.bashrc [2670:0528/022155.492429:ERROR:ozone_platform_x11.cc(240)] Missing X server or $DISPLAY [2670:0528/022155.492527:ERROR:env.cc(255)] The platform failed to initialize. Exiting. root@srv771551:~# # 创建桌面快捷方式 cat > ~/.local/share/applications/tabby.desktop <<EOF [Desktop Entry] Name=Tabby Exec=/path/to/tabby.AppImage --no-sandbox Icon=/path/to/icon.png Type=Application Categories=Development; EOF -bash: /root/.local/share/applications/tabby.desktop: No such file or directory root@srv771551:~# sudo apt upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done Get more security updates through Ubuntu Pro with 'esm-apps' enabled: libzvbi-common libwinpr2-2t64 libcjson1 libpostproc57 libavcodec60 libzvbi0t64 libavutil58 libswscale7 libfreerdp-server2-2t64 libswresample4 7zip libavformat60 libfreerdp2-2t64 libavfilter9 Learn more about Ubuntu Pro at https://ubuntu.com/pro 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@srv771551:~# sudo ubuntu-drivers autoinstall All the available drivers are already installed. root@srv771551:~# export GTK_IM_MODULE=ibus root@srv771551:~#
最新发布
05-29
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值