結果
問題 | No.1114 足し算盆に返らず |
ユーザー |
![]() |
提出日時 | 2020-07-17 22:01:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 7 ms / 2,000 ms |
コード長 | 289 bytes |
コンパイル時間 | 1,629 ms |
コンパイル使用メモリ | 165,820 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-29 23:55:06 |
合計ジャッジ時間 | 15,821 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 26 |
ソースコード
#include <bits/stdc++.h>#define rep(i, n) for(int i=0; i<(int)(n); i++)using namespace std;using ll = long long;using P = pair<int, int>;int main(){int n;cin >> n;for(int i=1; i<=n; i++){if(i % 2 != 0) cout << i << " ";}cout << endl;return 0;}