Submission #71637070
Source Code Expand
Copy
#include <stdio.h>int main(void) {puts("AtCoder");return 0;}/*At が要るので、a は Trueこの時点で not a が False なので、not a and b も Falseよって、Co では b は定まらないnot a or c において、not a は False なので、これを True にするには c は Trueよって、b も True にしてしまうと、a and b and c が True になって引っかかるので、b は False*//*a = True # True または Falseb = False # True または False
#include <stdio.h>
int main(void) {
puts("AtCoder");
return 0;
}
/*
At が要るので、a は True
この時点で not a が False なので、not a and b も False
よって、Co では b は定まらない
not a or c において、not a は False なので、これを True にするには c は True
よって、b も True にしてしまうと、a and b and c が True になって引っかかるので、b は False
*/
/*
a = True # True または False
b = False # True または False
c = True # True または False
# ここから先は変更しないこと
assert (a is True) or (a is False)
assert (b is True) or (b is False)
assert (c is True) or (c is False)
if a:
print("At", end="")
else:
print("Yo", end="")
if not a and b:
print("Bo", end="")
else:
print("Co", end="")
if a and b and c:
print("foo!", end="")
elif True and False:
print("year!", end="")
elif not a or c:
print("der", end="")
print("")
*/
Submission Info
| Submission Time | |
|---|---|
| Task | EX7 - bool値パズル |
| User | mikecat |
| Language | C (gcc 12.2.0) |
| Score | 100 |
| Code Size | 1014 Byte |
| Status | AC |
| Exec Time | 0 ms |
| Memory | 1628 KiB |
Judge Result
| Set Name | all | ||
|---|---|---|---|
| Score / Max Score | 100 / 100 | ||
| Status |
|
| Set Name | Test Cases |
|---|---|
| all | test01.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| test01.txt | AC | 0 ms | 1628 KiB |