結果

問題 No.661 ハローキティはりんご3個分
ユーザー tasukeshiptasukeship
提出日時 2021-02-14 00:16:23
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 434 bytes
コンパイル時間 824 ms
コンパイル使用メモリ 29,704 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-28 09:41:14
合計ジャッジ時間 1,455 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
int main(){
	unsigned int a[100];
	unsigned int b[100];
	int i,k;
	scanf("%d",&i);
	for(k=0;k<i;k++){
		scanf("%d",&a[k]);
	}
	for(k=0;k<i;k++){
		b[k]=a[k]/3;
	}
	for(k=0;k<i;k++){
		if(a[k]%8==0&&a[k]%10==0) printf("ikisugi\n");
		else if(a[k]%8==0) printf("iki\n");
		else if(a[k]%10==0) printf("sugi\n");
		else printf("%d\n",b[k]);
	}
	system("pause");
}
0