結果
| 問題 |
No.1893 Cycle
|
| コンテスト | |
| ユーザー |
eve__fuyuki
|
| 提出日時 | 2024-06-14 15:38:37 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 509 bytes |
| コンパイル時間 | 2,283 ms |
| コンパイル使用メモリ | 200,768 KB |
| 最終ジャッジ日時 | 2025-02-21 21:36:58 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
void fast_io() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
int main() {
fast_io();
int x, y;
cin >> x >> y;
vector<set<int>> st(4);
for (int i = 0; i < 12; i++) {
st[i % 4].insert(i);
}
for (int i = 0; i < 4; i++) {
if (st[i].count(x) && st[i].count(y)) {
st[i].erase(x);
st[i].erase(y);
cout << *st[i].begin() << endl;
return 0;
}
}
}
eve__fuyuki