結果
問題 |
No.383 レーティング
|
ユーザー |
|
提出日時 | 2017-03-13 16:38:19 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 171 bytes |
コンパイル時間 | 99 ms |
コンパイル使用メモリ | 19,840 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-30 00:38:57 |
合計ジャッジ時間 | 706 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d %d",&a,&b); | ^~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main(void){ int a,b; scanf("%d %d",&a,&b); if(b>a){ printf("+%d",b-a); }else if(a>b){ printf("-%d",a-b); }else printf("0"); return 0; }