結果

問題 No.661 ハローキティはりんご3個分
ユーザー Ytz_IchiYtz_Ichi
提出日時 2020-02-22 03:17:52
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 282 bytes
コンパイル時間 119 ms
コンパイル使用メモリ 10,560 KB
実行使用メモリ 7,916 KB
最終ジャッジ日時 2023-07-30 18:41:54
合計ジャッジ時間 778 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

n = int(input())
a = [int(input()) for i in range(n)]
for i in range(n):
    if a[i] % 10 == 0 and a[i] % 8 == 0:
        a[i] = "ikisugi"
    elif a[i] % 10 == 0:
        a[i] = "sugi"
    elif a[i] % 8 == 0:
        a[i] = "iki"
    else:
        a[i] = a[i] // 3
    print(a[i])
0