結果
| 問題 |
No.1003 サイコロの実装 (1)
|
| コンテスト | |
| ユーザー |
startcpp
|
| 提出日時 | 2020-03-06 21:20:44 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 382 bytes |
| コンパイル時間 | 737 ms |
| コンパイル使用メモリ | 81,616 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-14 03:39:58 |
| 合計ジャッジ時間 | 1,574 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 7 WA * 18 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:18:15: warning: 'n' is used uninitialized [-Wuninitialized]
18 | if (n % 6 == 0) cout << "Yes" << endl;
| ~~^~~
main.cpp:17:13: note: 'n' was declared here
17 | int n;
| ^
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
#include <functional>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <tuple>
#include <cstdio>
#include <cmath>
#define rep(i, n) for(i = 0; i < n; i++)
using namespace std;
signed main() {
int n;
if (n % 6 == 0) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
}
startcpp