QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#783188 | #6254. Breaking Branches | 353cerega# | AC ✓ | 0ms | 3712kb | C++14 | 808b | 2024-11-26 01:01:50 | 2024-11-26 01:01:50 |
Judging History
answer
#pragma GCC optimize("Ofast", "unroll-loops", "omit-frame-pointer","inline")
#pragma GCC option("arch=native","tune=native","no-zero-upper")
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define X first
#define Y second
const ll mod = 1000000007;
//const ll mod = 998244353;
ll pew(ll a, ll b) {
ll res = 1;
while (b>0) {
if (b&1) res = res*a%mod;
b >>= 1;
a = a*a%mod;
}
return res;
}
void solve() {
ll n;
cin >> n;
if (n%2==1) {
cout << "Bob\n";
} else {
cout << "Alice\n";
cout << "1\n";
}
}
int main() {
ios_base::sync_with_stdio(false);
int T = 1;
//cin >> T;
while (T--) solve();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3664kb
input:
4444
output:
Alice 1
result:
ok correct
Test #2:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
2
output:
Alice 1
result:
ok correct
Test #3:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
3
output:
Bob
result:
ok correct
Test #4:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
5
output:
Bob
result:
ok correct
Test #5:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
10
output:
Alice 1
result:
ok correct
Test #6:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
15
output:
Bob
result:
ok correct
Test #7:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
1235123
output:
Bob
result:
ok correct
Test #8:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
1000000000
output:
Alice 1
result:
ok correct
Test #9:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
999999999
output:
Bob
result:
ok correct
Test #10:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
239023592
output:
Alice 1
result:
ok correct
Test #11:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
239532453
output:
Bob
result:
ok correct
Test #12:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
1111112
output:
Alice 1
result:
ok correct
Test #13:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
1222222
output:
Alice 1
result:
ok correct
Test #14:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
999999761
output:
Bob
result:
ok correct
Test #15:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
993762527
output:
Bob
result:
ok correct
Test #16:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
865523177
output:
Bob
result:
ok correct
Test #17:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
999999964
output:
Alice 1
result:
ok correct
Test #18:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
4
output:
Alice 1
result:
ok correct
Test #19:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
988888
output:
Alice 1
result:
ok correct
Test #20:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
99999888
output:
Alice 1
result:
ok correct
Test #21:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
999993829
output:
Bob
result:
ok correct
Test #22:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
8329
output:
Bob
result:
ok correct