結果

問題 No.661 ハローキティはりんご3個分
ユーザー じゃがりこじゃがりこ
提出日時 2018-08-01 01:43:20
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 348 bytes
コンパイル時間 913 ms
コンパイル使用メモリ 28,768 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-19 20:37:12
合計ジャッジ時間 1,488 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 1 ms
4,348 KB
testcase_04 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void) {
    int N, i, M;

	scanf("%d", &N);
	for (i = 0; i < N; i++) {
		scanf("%d", &M);
		if(M % 8 == 0 && M % 10 == 0) {
			printf("ikisugi\n");
		}
		else if(M % 8 == 0) {
			printf("iki\n");
		}
		else if(M % 10 == 0) {
			printf("sugi\n");
		}
		else if (M % 3 == 0) {
			M = M / 3;
			printf("%d\n", M);
		}
	}
}
0