結果
問題 |
No.383 レーティング
|
ユーザー |
![]() |
提出日時 | 2018-06-03 13:15:04 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 254 bytes |
コンパイル時間 | 145 ms |
コンパイル使用メモリ | 29,824 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 09:18:08 |
合計ジャッジ時間 | 806 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
#include <stdio.h> int main(){ int a, b, sub; scanf("%d %d", &a, &b); sub = b - a; if(sub > 0){ printf("+%d\n", sub); }else if(sub == 0){ printf("0\n"); }else{ printf("%d\n", sub); } return 0; }