結果

問題 No.661 ハローキティはりんご3個分
ユーザー funakoshifunakoshi
提出日時 2019-08-21 14:06:09
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 586 bytes
コンパイル時間 242 ms
コンパイル使用メモリ 31,360 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-17 05:19:22
合計ジャッジ時間 752 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
int main(void)
{
    int weight,inputtimes;
    scanf("%d",&inputtimes);
    for(int i=0;i<inputtimes;i++)
    {
        scanf("%d",&weight);
        if(weight%8==0)
        {
            printf("iki");
            if (weight%10==0)
            {
                printf("sugi");
            }
        }
        else if (weight%10==0)
        {
            printf("sugi");
        }
        
        else
        {
            printf("%d",weight/3);
        }
        printf("\n");
    }
}
0