結果

問題 No.661 ハローキティはりんご3個分
ユーザー Nisshy_24Nisshy_24
提出日時 2018-04-04 01:29:32
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 10,600 KB
実行使用メモリ 7,820 KB
最終ジャッジ日時 2023-09-08 15:36:01
合計ジャッジ時間 926 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

n = int(input())
outs = []

for count in range(n):
	apple = int(input())
	if (apple % 8 == 0) and (apple % 10 == 0):
		outs.append("ikisugi")
	elif apple % 10 == 0:
		outs.append("sugi")
	elif apple % 8 == 0:
		outs.append("iki")
	else:
		a = apple / 3
		outs.append(int(a))

for out in outs:
	print(out)
0