結果
問題 | No.1114 足し算盆に返らず |
ユーザー |
|
提出日時 | 2020-07-18 07:39:04 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 7 ms / 2,000 ms |
コード長 | 264 bytes |
コンパイル時間 | 2,021 ms |
コンパイル使用メモリ | 160,308 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-15 15:08:03 |
合計ジャッジ時間 | 17,989 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 26 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; bool a = false; for(int i = 1; i<= n; i++){ if(i % 2 == 1) { if(a) cout<<" "; cout << i; a = true; } } return 0; }