1 solutions

  • 0
    @ 2024-11-30 10:32:46
    
    #include<bits/stdc++.h>
    using namespace std;
    const int N=110;
    long long a[N];
    int main()
    {
    	int n;
    	cin>>n;
    	for(int i=1;i<=n;i++)
    	{
    		cin>>a[i];
    	}
    	long long x;
    	cin>>x;
    	for(int i=1;i<=n;i++)
    	{
    		cout<<a[i]*x<<" ";
    	}
    	return 0;
    }
    
    
    • 1

    Information

    ID
    540
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    8
    Tags
    # Submissions
    17
    Accepted
    5
    Uploaded By