結果

問題 No.2297 Best Grouping
ユーザー forest3forest3
提出日時 2023-05-18 15:00:19
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 171 bytes
コンパイル時間 1,673 ms
コンパイル使用メモリ 164,944 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-16 05:43:07
合計ジャッジ時間 2,872 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
	int N;
	cin >> N;

	int ans = N % 3;
	if( ans == 2 ) ans = 1;
	else if( ans ) ans = 2;
	cout << ans << endl;
}
0