結果
問題 |
No.1108 移調
|
ユーザー |
![]() |
提出日時 | 2022-11-12 16:27:04 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 376 bytes |
コンパイル時間 | 1,623 ms |
コンパイル使用メモリ | 158,708 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-14 06:42:39 |
合計ジャッジ時間 | 2,130 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; #include <stdio.h> #include <iomanip> #include <iostream> #include <string> #include <algorithm> int main(){ int a, b; cin >> a >> b; vector<int> vec(a); for(int i=0;i<a;i++){ int c; cin >> c; vec.at(i) = c+b; if(i==0){ cout << vec.at(i); } else{ cout << " "<< vec.at(i); } } }