結果
| 問題 |
No.1713 trick or treat!
|
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-27 16:50:22 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 248 bytes |
| コンパイル時間 | 347 ms |
| コンパイル使用メモリ | 25,472 KB |
| 実行使用メモリ | 7,324 KB |
| 最終ジャッジ日時 | 2025-03-27 16:50:23 |
| 合計ジャッジ時間 | 1,249 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
コンパイルメッセージ
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;
long long int result = 1;
for(int i = 1 ; i <= n ; i++){
result *= i;
}
printf("%lld",result);
}
Maeda