結果
| 問題 |
No.2297 Best Grouping
|
| コンテスト | |
| ユーザー |
pengin_2000
|
| 提出日時 | 2023-10-28 01:55:41 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 179 bytes |
| コンパイル時間 | 386 ms |
| コンパイル使用メモリ | 28,672 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-25 15:56:53 |
| 合計ジャッジ時間 | 1,386 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
#include<stdio.h>
int main()
{
int n;
scanf("%d", &n);
if (n % 3 == 0)
printf("0\n");
else if (n % 6 == 2 || n % 6 == 5)
printf("1\n");
else
printf("2\n");
return 0;
}
pengin_2000