1 条题解
-
-1
C++ :
#include <iostream> using namespace std; int main() { int X, Y; cin >> X >> Y; if (X <= 8 && Y <= 8) cout << "Yay!" << endl; else cout << ":(" << endl; return 0; }
Python :
# coding=utf-8 def getint(): return [int(i) for i in input().split()] def get(): return int(input()) def S(): for test in range(int(input())): solve() def solve(): n=get() a,b=getint() if a<=8 and b<=8: print("Yay!") else: print(":(")
信息
- ID
- 20994
- 时间
- 2000ms
- 内存
- 128MiB
- 难度
- 3
- 标签
- (无)
- 递交数
- 37
- 已通过
- 21
- 上传者