結果

問題 No.1528 Not 1
ユーザー てりやきてりやき
提出日時 2021-06-04 20:59:44
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 392 bytes
コンパイル時間 802 ms
コンパイル使用メモリ 69,632 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-30 00:49:36
合計ジャッジ時間 4,641 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 113 ms
5,376 KB
testcase_02 AC 40 ms
5,376 KB
testcase_03 AC 51 ms
5,376 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 77 ms
5,376 KB
testcase_07 AC 119 ms
5,376 KB
testcase_08 WA -
testcase_09 AC 24 ms
5,376 KB
testcase_10 AC 57 ms
5,376 KB
testcase_11 RE -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 2 ms
5,376 KB
testcase_16 AC 2 ms
5,376 KB
testcase_17 AC 2 ms
5,376 KB
testcase_18 AC 132 ms
5,376 KB
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
using namespace std;

int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int n;cin >>n;
    int x=n/2;
    std::vector<int>ans;
    for(int i=0;i<x;i++)ans.emplace_back(2*(i+1));
    if(ans.back()>n)std::cout << -1 << std::endl;
    else{
        for(int &i:ans){
            std::cout << i << std::endl;
        }
    }
    return 0;
}
0