結果
| 問題 |
No.2297 Best Grouping
|
| コンテスト | |
| ユーザー |
tnakao0123
|
| 提出日時 | 2023-06-04 02:02:19 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 365 bytes |
| コンパイル時間 | 286 ms |
| コンパイル使用メモリ | 40,448 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-29 03:21:10 |
| 合計ジャッジ時間 | 1,272 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
/* -*- coding: utf-8 -*-
*
* 2297.cc: No.2297 Best Grouping - yukicoder
*/
#include<cstdio>
#include<algorithm>
using namespace std;
/* constant */
/* typedef */
/* global variables */
/* subroutines */
/* main */
int main() {
int n;
scanf("%d", &n);
int r = n % 3;
int x = (r == 0) ? 0 : (r == 1) ? 2 : 1;
printf("%d\n", x);
return 0;
}
tnakao0123