結果

問題 No.661 ハローキティはりんご3個分
ユーザー TDTD
提出日時 2022-06-09 10:06:07
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 970 bytes
コンパイル時間 750 ms
コンパイル使用メモリ 108,308 KB
実行使用メモリ 23,744 KB
最終ジャッジ日時 2023-10-21 04:24:21
合計ジャッジ時間 1,461 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
23,744 KB
testcase_01 AC 20 ms
23,724 KB
testcase_02 AC 20 ms
23,744 KB
testcase_03 AC 20 ms
23,724 KB
testcase_04 AC 21 ms
23,728 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace yukicoder
{
    class Program
    {
        static void Main(string[] args)
        {
            int a = int.Parse(Console.ReadLine());
            int[] c = new int[a];
            int ans = 0;
            for(int i = 0; i < a ; i++)
            {
                int b = int.Parse(Console.ReadLine());
                c[i] = b;
            }

            for(int j = 0; j < a ; j++)
            {
                if (c[j] % 8 == 0 && c[j] % 10 == 0)
                {
                    Console.WriteLine("ikisugi");
                }else if(c[j] % 8 == 0)
                {
                    Console.WriteLine("iki");
                }else if(c[j] % 10 == 0)
                {
                    Console.WriteLine("sugi");
                }else if (c[j] % 3 == 0)
                {
                    ans = c[j] / 3;
                    Console.WriteLine(ans);
                }
            }
            
            
        }
    }
}
0