結果
| 問題 | 
                            No.1986 Yummy
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Maeda
                         | 
                    
| 提出日時 | 2025-03-28 15:36:23 | 
| 言語 | C  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 180 bytes | 
| コンパイル時間 | 692 ms | 
| コンパイル使用メモリ | 24,448 KB | 
| 実行使用メモリ | 5,888 KB | 
| 最終ジャッジ日時 | 2025-03-28 15:36:26 | 
| 合計ジャッジ時間 | 1,773 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 1 | 
| other | AC * 18 WA * 6 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |     scanf("%lld",&n);
      |     ^~~~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
void main(void) {
    long long int n = 0;
    scanf("%lld",&n);
    if(n%2 == 0){
        printf("%lld",n/2);
    }else{
        printf("%lld",n/2+1);
    }
}
            
            
            
        
            
Maeda