結果
| 問題 | No.192 合成数 |
| コンテスト | |
| ユーザー |
tntan
|
| 提出日時 | 2015-12-04 23:14:23 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 539 bytes |
| 記録 | |
| コンパイル時間 | 526 ms |
| コンパイル使用メモリ | 107,320 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-24 05:15:39 |
| 合計ジャッジ時間 | 4,537 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 25 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:30:15: warning: 'n' is used uninitialized [-Wuninitialized]
30 | if (n % 2)cout << n + 1 << endl;
| ~~^~~
main.cpp:29:13: note: 'n' was declared here
29 | int n;
| ^
ソースコード
#include <map>
#include <set>
#include <list>
#include <cmath>
#include <ctime>
#include <deque>
#include <queue>
#include <stack>
#include <string>
#include <bitset>
#include <cstdio>
#include <limits>
#include <vector>
#include <climits>
#include <cstring>
#include <cstdlib>
#include <fstream>
#include <numeric>
#include <sstream>
#include <iostream>
#include <algorithm>
#include <iomanip>
#include <cctype>
using namespace std;
typedef long long ll;
int main()
{
int n;
if (n % 2)cout << n + 1 << endl;
else cout << n << endl;
}
tntan