結果

問題 No.661 ハローキティはりんご3個分
ユーザー SKanayaSKanaya
提出日時 2018-03-28 21:04:26
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 286 bytes
コンパイル時間 143 ms
コンパイル使用メモリ 24,892 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-07 19:31:11
合計ジャッジ時間 637 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#include <stdio.h>

int main()
{
  int i, N;
  scanf("%d",&i);
  for (int j=0;j<i;j++) {
    scanf("%d",&N);
    if( !(N%8)&&!(N%10) ) printf("ikisugi\n");
    else if ( !(N%10) )  printf("sugi\n");
    else if ( !(N%8) ) printf("iki\n");
    else printf("%d\n",N/3);
  }
  return 0;
}
0