結果
問題 | No.1114 足し算盆に返らず |
ユーザー |
![]() |
提出日時 | 2020-07-17 22:00:55 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 508 bytes |
コンパイル時間 | 1,937 ms |
コンパイル使用メモリ | 190,900 KB |
最終ジャッジ日時 | 2025-01-11 22:39:01 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 26 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define ll long long#define REP(i,m,n) for(int i=(int)(m); i<(int)(n); i++)#define rep(i,n) REP(i,0,n)#define RREP(i,m,n) for(int i=(int)(m); i>=(int)(n); i--)#define rrep(i,n) RREP(i,n-1,0)#define all(v) v.begin(), v.end()const int inf = 1e9+7;const ll longinf = 1LL<<60;const ll mod = 1e9+7;int main() {cin.tie(0);ios::sync_with_stdio(false);int n; cin >> n;for(int i=1; i<=n; i++) if(i%2) cout << i << ' ';cout << "\n";return 0;}