QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#133847 | #6254. Breaking Branches | KhNURE_KIVI# | AC ✓ | 1ms | 3636kb | C++14 | 1.9kb | 2023-08-02 15:29:10 | 2023-08-02 15:29:12 |
Judging History
answer
//#pragma GCC optimize("Ofast", "unroll-loops")
//#pragma GCC target("sse", "sse2", "sse3", "ssse3", "sse4")
#ifdef LOCAL
#include <iostream>
#include <cmath>
#include <algorithm>
#include <stdio.h>
#include <cstdint>
#include <cstring>
#include <string>
#include <cstdlib>
#include <vector>
#include <bitset>
#include <map>
#include <queue>
#include <ctime>
#include <stack>
#include <set>
#include <list>
#include <random>
#include <deque>
#include <functional>
#include <iomanip>
#include <sstream>
#include <fstream>
#include <complex>
#include <numeric>
#include <cassert>
#include <array>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <thread>
#else
#include <bits/stdc++.h>
#endif
#define all(a) a.begin(),a.end()
#define len(a) (int)(a.size())
#define mp make_pair
#define pb push_back
#define fir first
#define sec second
#define fi first
#define se second
using namespace std;
typedef pair<int, int> pii;
typedef long long ll;
typedef long double ld;
template<typename T>
inline bool umin(T &a, T b) {
if (b < a) {
a = b;
return true;
}
return false;
}
template<typename T>
inline bool umax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
#ifdef LOCAL
#define D for (bool _FLAG = true; _FLAG; _FLAG = false)
#define LOG(...) print(#__VA_ARGS__" ::", __VA_ARGS__) << endl
template <class ...Ts> auto &print(Ts ...ts) { return ((cerr << ts << " "), ...); }
#else
#define D while (false)
#define LOG(...)
#endif // LOCAL
const int max_n = -1, inf = 1000111222;
int main() {
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdout);
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n;
if (n & 1) {
cout << "Bob\n";
}
else {
cout << "Alice\n1\n";
}
}
詳細信息
Test #1:
score: 100
Accepted
time: 1ms
memory: 3424kb
input:
4444
output:
Alice 1
result:
ok correct
Test #2:
score: 0
Accepted
time: 1ms
memory: 3600kb
input:
2
output:
Alice 1
result:
ok correct
Test #3:
score: 0
Accepted
time: 0ms
memory: 3464kb
input:
3
output:
Bob
result:
ok correct
Test #4:
score: 0
Accepted
time: 1ms
memory: 3464kb
input:
5
output:
Bob
result:
ok correct
Test #5:
score: 0
Accepted
time: 1ms
memory: 3472kb
input:
10
output:
Alice 1
result:
ok correct
Test #6:
score: 0
Accepted
time: 1ms
memory: 3464kb
input:
15
output:
Bob
result:
ok correct
Test #7:
score: 0
Accepted
time: 1ms
memory: 3376kb
input:
1235123
output:
Bob
result:
ok correct
Test #8:
score: 0
Accepted
time: 1ms
memory: 3416kb
input:
1000000000
output:
Alice 1
result:
ok correct
Test #9:
score: 0
Accepted
time: 1ms
memory: 3484kb
input:
999999999
output:
Bob
result:
ok correct
Test #10:
score: 0
Accepted
time: 0ms
memory: 3460kb
input:
239023592
output:
Alice 1
result:
ok correct
Test #11:
score: 0
Accepted
time: 0ms
memory: 3424kb
input:
239532453
output:
Bob
result:
ok correct
Test #12:
score: 0
Accepted
time: 1ms
memory: 3376kb
input:
1111112
output:
Alice 1
result:
ok correct
Test #13:
score: 0
Accepted
time: 0ms
memory: 3468kb
input:
1222222
output:
Alice 1
result:
ok correct
Test #14:
score: 0
Accepted
time: 1ms
memory: 3460kb
input:
999999761
output:
Bob
result:
ok correct
Test #15:
score: 0
Accepted
time: 0ms
memory: 3476kb
input:
993762527
output:
Bob
result:
ok correct
Test #16:
score: 0
Accepted
time: 0ms
memory: 3428kb
input:
865523177
output:
Bob
result:
ok correct
Test #17:
score: 0
Accepted
time: 1ms
memory: 3484kb
input:
999999964
output:
Alice 1
result:
ok correct
Test #18:
score: 0
Accepted
time: 1ms
memory: 3420kb
input:
4
output:
Alice 1
result:
ok correct
Test #19:
score: 0
Accepted
time: 1ms
memory: 3472kb
input:
988888
output:
Alice 1
result:
ok correct
Test #20:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
99999888
output:
Alice 1
result:
ok correct
Test #21:
score: 0
Accepted
time: 1ms
memory: 3636kb
input:
999993829
output:
Bob
result:
ok correct
Test #22:
score: 0
Accepted
time: 1ms
memory: 3460kb
input:
8329
output:
Bob
result:
ok correct