Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
318106 lianghongrui 星号三角阵(三) T2 C++ 通过 5 MS 728 KB 996 2026-04-19 16:35:32

Tests(10/10):


#include<bits/stdc++.h> #define ll long long #define ull unsigned ll #define i128 __int128 #define db double #define str string #define endl '\n' #define pii pair<int,int> #define pll pair<ll,ll> #define mii map<int,int> #define mll map<ll,ll> #define all(a) a.begin(),a.end() using namespace std; const db pai=3.1415926; const int N=1e5+5,K=25,mod=1e9+7,inf=0x3f3f3f3f; const ll INF=0x3f3f3f3f3f3f3f3f; void O_O(){ int n; cin>>n; for(int i=0;i<n;i++){ for(int j=1;j<=i;j++) cout<<' '; for(int j=1;j<=n-i;j++) cout<<'*'; cout<<endl; } } int main(){ ios::sync_with_stdio(false); cin.tie(0),cout.tie(0); //freopen("pow.in","r",stdin); //freopen("pow.out","w",stdout); //init(); int t=1; //cin>>t; while(t--) O_O(); return 0; } // />  フ // | _ _ | // / ミ ^ ノ // / | // / ノ // │ | | | // / ̄    | | | // | ( ̄ヽ___ヽ_)__) // \二


测评信息: