結果
| 問題 |
No.661 ハローキティはりんご3個分
|
| コンテスト | |
| ユーザー |
funakoshi
|
| 提出日時 | 2019-08-21 14:06:09 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 586 bytes |
| コンパイル時間 | 1,196 ms |
| コンパイル使用メモリ | 30,208 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-08 16:39:26 |
| 合計ジャッジ時間 | 1,751 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
ソースコード
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
int main(void)
{
int weight,inputtimes;
scanf("%d",&inputtimes);
for(int i=0;i<inputtimes;i++)
{
scanf("%d",&weight);
if(weight%8==0)
{
printf("iki");
if (weight%10==0)
{
printf("sugi");
}
}
else if (weight%10==0)
{
printf("sugi");
}
else
{
printf("%d",weight/3);
}
printf("\n");
}
}
funakoshi