結果
問題 |
No.383 レーティング
|
ユーザー |
![]() |
提出日時 | 2025-03-10 11:04:05 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 171 bytes |
コンパイル時間 | 362 ms |
コンパイル使用メモリ | 24,320 KB |
実行使用メモリ | 7,324 KB |
最終ジャッジ日時 | 2025-03-10 11:04:07 |
合計ジャッジ時間 | 1,346 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d",&a); | ^~~~~~~~~~~~~~ main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%d",&b); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h> void main(void){ int a = 0; scanf("%d",&a); int b = 0; scanf("%d",&b); int s = b-a; if(s > 0){ printf("+%d",s); }else{ printf("%d",s); } }