結果

問題 No.661 ハローキティはりんご3個分
ユーザー hiro_ei1812hiro_ei1812
提出日時 2019-08-18 09:18:46
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 319 bytes
コンパイル時間 2,154 ms
コンパイル使用メモリ 51,032 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-07-24 18:23:55
合計ジャッジ時間 2,603 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
	int i,in[5];
	int n;

	//入力
	cin>>i;
	for(n=0;n<i;n++){
		cin>>in[n];
	}
	
	for(n=0;n<i;n++){
		if((in[n]%8)==0){
			cout<<"iki";
		}
		if((in[n]%10)==0){
			cout<<"sugi";
		
		}
		else if((in[n]%3)==0){
			cout<<in[n]/3;
		}
		cout<<endl;
	}

	return 0;
}
		
0