オンライン実行

言語
ソースコード
タブ幅 
#include<vector>
#include<iostream>
#include<numeric>
using namespace std;
signed main(){
  vector<int> v(8);
  iota(v.begin(),v.end(),0);
  v.pop_back();
  v.emplace(v.begin(),v.back());
  for(int x:v) cout<<x<<" ";
  cout<<endl;
  return 0;
}
標準入力
ログインしている場合のみ実行できます。
結果を非表示にする
一般公開

実行結果

コンパイルメッセージ
標準出力
標準エラー出力
実行時間 : 3 ms
コンパイル時間/使用メモリ : 403 ms
0 KB
実行使用メモリ : 1468 KB
終了ステータス : 0
コード長 : 245 Byte