結果
| 問題 | No.1713 trick or treat! | 
| コンテスト | |
| ユーザー |  Maeda | 
| 提出日時 | 2025-03-27 16:49:08 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 236 bytes | 
| コンパイル時間 | 687 ms | 
| コンパイル使用メモリ | 24,448 KB | 
| 実行使用メモリ | 5,888 KB | 
| 最終ジャッジ日時 | 2025-03-27 16:49:10 | 
| 合計ジャッジ時間 | 1,123 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 WA * 1 | 
| other | AC * 2 WA * 3 | 
コンパイルメッセージ
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("%d %d",&trick,&treat);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
void main(void){
    int trick = 0 , treat = 0;
    scanf("%d %d",&trick,&treat);
    int n = trick|treat;
    int result = 1;
    for(int i = 1 ; i <= n ; i++){
        result *= i;
    }
    printf("%d",result);
}
            
            
            
        