結果
問題 | No.1893 Cycle |
ユーザー |
![]() |
提出日時 | 2022-04-08 21:22:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 314 bytes |
コンパイル時間 | 3,871 ms |
コンパイル使用メモリ | 228,444 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-28 11:58:37 |
合計ジャッジ時間 | 4,495 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
#include <bits/stdc++.h>using namespace std;#include <atcoder/all>using namespace atcoder;using ll=long long;using Graph=vector<vector<int>>;#define INF 1000000000#define MOD 998244353#define MAX 1000int main(){int X,Y;cin>>X>>Y;int r=X%4;int a=X/4;int b=Y/4;cout<<(3-a-b)*4+r<<'\n';}