提出 #57513956
ソースコード 拡げる
Copy
# include <bits/stdc++.h># define endl "\n"# define ll long longusing namespace std;const int MOD = 1e9 + 7;const int N = 1e5;void solve() {int l,r; cin >> l >> r;if(l+r==2) cout << "Invalid" << endl;else if(l) cout << "Yes" << endl;else if(r) cout << "No" << endl;else cout << "Invalid" << endl;}int main() {int __ = 1;// cin >> __;
# include <bits/stdc++.h> # define endl "\n" # define ll long long using namespace std; const int MOD = 1e9 + 7; const int N = 1e5; void solve() { int l,r; cin >> l >> r; if(l+r==2) cout << "Invalid" << endl; else if(l) cout << "Yes" << endl; else if(r) cout << "No" << endl; else cout << "Invalid" << endl; } int main() { int __ = 1; // cin >> __; while (__--){ solve(); } return 0; }
提出情報
提出日時 | |
---|---|
問題 | A - Raise Both Hands |
ユーザ | enough_cpi |
言語 | C++ 20 (gcc 12.2) |
得点 | 100 |
コード長 | 466 Byte |
結果 | AC |
実行時間 | 1 ms |
メモリ | 3508 KB |
ジャッジ結果
セット名 | Sample | All | ||||
---|---|---|---|---|---|---|
得点 / 配点 | 0 / 0 | 100 / 100 | ||||
結果 |
|
|
セット名 | テストケース |
---|---|
Sample | sample00.txt, sample01.txt |
All | sample00.txt, sample01.txt, testcase00.txt, testcase01.txt |
ケース名 | 結果 | 実行時間 | メモリ |
---|---|---|---|
sample00.txt | AC | 1 ms | 3492 KB |
sample01.txt | AC | 1 ms | 3376 KB |
testcase00.txt | AC | 1 ms | 3472 KB |
testcase01.txt | AC | 1 ms | 3508 KB |