結果
| 問題 |
No.2297 Best Grouping
|
| コンテスト | |
| ユーザー |
as277575
|
| 提出日時 | 2023-05-12 21:43:14 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 378 bytes |
| コンパイル時間 | 986 ms |
| コンパイル使用メモリ | 108,892 KB |
| 最終ジャッジ日時 | 2025-02-12 22:24:02 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <cmath>
#include <deque>
#include <iostream>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <vector>
#include <set>
using namespace::std;
int main() {
ios::sync_with_stdio(false);
int n;
cin >> n;
vector<int> r {0, 2, 1};
cout << r[n % 3] << endl;
return 0;
}
as277575