結果

問題 No.153 石の山
ユーザー mayoko_
提出日時 2015-02-15 23:53:25
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 513 bytes
コンパイル時間 649 ms
コンパイル使用メモリ 72,388 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-14 13:26:30
合計ジャッジ時間 1,579 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#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 || N == 1) cout << "B" << endl;
        else cout << "A" << endl;
    }
    return 0;
}
0