結果
問題 | No.1986 Yummy |
ユーザー |
![]() |
提出日時 | 2025-03-28 15:38:31 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 176 bytes |
コンパイル時間 | 485 ms |
コンパイル使用メモリ | 24,832 KB |
実行使用メモリ | 7,324 KB |
最終ジャッジ日時 | 2025-03-28 15:38:33 |
合計ジャッジ時間 | 1,909 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 24 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:9:20: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int’ [-Wformat=] 9 | printf("%lld",1); | ~~~^ ~ | | | | | int | long long int | %d 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",1);}}