結果
| 問題 | No.661 ハローキティはりんご3個分 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-02-16 20:54:31 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 2,000 ms | 
| コード長 | 295 bytes | 
| コンパイル時間 | 248 ms | 
| コンパイル使用メモリ | 22,912 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-06 14:41:46 | 
| 合計ジャッジ時間 | 836 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 5 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:4:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    4 |     for(scanf("%d",&i);i>0;i--){
      |         ~~~~~^~~~~~~~~
main.cpp:5:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |         scanf("%d",&N);
      |         ~~~~~^~~~~~~~~
            
            ソースコード
#include <cstdio>
int main(){
    int i;int N;
    for(scanf("%d",&i);i>0;i--){
        scanf("%d",&N);
        if(N%8==0)printf("iki");
        if(N%10==0)printf("sugi");
        if(N%8!=0 && N%10!=0){
            printf("%d",N/3);
        }
        
        printf("\n");
    }
    return 0;
}
            
            
            
        