結果
問題 |
No.1528 Not 1
|
ユーザー |
![]() |
提出日時 | 2021-06-04 20:59:44 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 392 bytes |
コンパイル時間 | 569 ms |
コンパイル使用メモリ | 69,876 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-19 10:49:55 |
合計ジャッジ時間 | 5,480 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | AC * 11 WA * 7 RE * 1 |
ソースコード
#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; }