結果
| 問題 |
No.2297 Best Grouping
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-26 01:44:38 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 188 bytes |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 27,648 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-02 18:14:49 |
| 合計ジャッジ時間 | 1,255 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
#include <stdio.h>
int main(void)
{
int N;
scanf("%d", &N);
if(N % 3 == 0) {
printf("%d", 0);
} else if(N % 3 == 1) {
printf("%d", 2);
} else {
printf("%d", 1);
}
return 0;
}