結果
| 問題 |
No.153 石の山
|
| コンテスト | |
| ユーザー |
mayoko_
|
| 提出日時 | 2015-02-15 23:52:17 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 503 bytes |
| コンパイル時間 | 644 ms |
| コンパイル使用メモリ | 72,556 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-14 13:26:14 |
| 合計ジャッジ時間 | 1,519 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 18 WA * 9 |
ソースコード
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <iostream>
#include <utility>
#include <set>
#include <cctype>
#include <queue>
#include <stack>
#include <cstdio>
#include <cstdlib>
#include <cmath>
using namespace std;
typedef long long ll;
int main(void) {
int N;
cin >> N;
if (N % 2 == 0) {
cout << "A" << endl;
} else {
if (N % 3 == 0) cout << "B" << endl;
else cout << "A" << endl;
}
return 0;
}
mayoko_