結果
| 問題 | No.1893 Cycle |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-04-08 21:38:30 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,486 bytes |
| 記録 | |
| コンパイル時間 | 4,091 ms |
| コンパイル使用メモリ | 229,392 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-28 12:15:24 |
| 合計ジャッジ時間 | 4,529 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 WA * 8 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using namespace atcoder;
typedef long long ll;
typedef pair<int, int> P;
template <typename T>
using min_priority_queue = priority_queue<T, vector<T>, greater<T>>;
const double PI = 3.14159265358979323846;
int ddx[] = {1, -1, 0, 0, 1, 1, -1, -1};
int ddy[] = {0, 0, 1, -1, 1, -1, 1, -1};
int dx[] = {1, 0, -1, 0};
int dy[] = {0, 1, 0, -1};
void cans(bool f) {
if (f)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
template <typename T>
T gcd(T a, T b) {
if (b == 0)
return a;
else
return gcd(b, a % b);
}
bool compare1(pair<ll, ll> a, pair<ll, ll> b) { return a.first < b.first; }
bool compare2(pair<ll, ll> a, pair<ll, ll> b) { return a.second < b.second; }
ll m = 998244353;
long long modpow(long long a, long long n, long long mod = 998244353) {
long long res = 1;
while (n > 0) {
if (n & 1) res = res * a % mod;
a = a * a % mod;
n >>= 1;
}
return res;
}
template <typename T>
bool chmax(T& a, const T& b) {
if (a < b) {
a = b; // aをbで更新
return true;
}
return false;
}
template <typename T>
bool chmin(T& a, const T& b) {
if (a > b) {
a = b; // aをbで更新
return true;
}
return false;
}
int main() {
int X, Y;
cin >> X >> Y;
if (X > Y) swap(X, Y);
cout << (Y + 4) % 12 << endl;
}