結果
問題 | No.1108 移調 |
ユーザー |
![]() |
提出日時 | 2020-07-10 22:43:00 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 596 bytes |
コンパイル時間 | 1,478 ms |
コンパイル使用メモリ | 167,404 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-11 10:04:28 |
合計ジャッジ時間 | 2,200 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define hell 998244353 #define PI acos(-1.0) #define S second #define F first #define lli long long int #define li long int #define ld long double #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() #define run(j, n) for(auto ii=j;ii!=n;ii++) #define out(j, n) for(auto ii=j;ii!=n;ii++) cout<<(*ii)<<" "; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout << fixed << showpoint; cout << setprecision(11); lli n, k;cin>>n>>k; lli ar[n]; run(0, n) { cin>>ar[ii]; ar[ii]+=k; } out(ar, ar+n); return 0; }