結果
問題 |
No.383 レーティング
|
ユーザー |
![]() |
提出日時 | 2023-06-30 13:57:21 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 317 bytes |
コンパイル時間 | 189 ms |
コンパイル使用メモリ | 29,312 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-07 01:58:35 |
合計ジャッジ時間 | 836 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <math.h> #include <string.h> int main() { int rate1 = 0; int rate2 = 0; int ans = 0; scanf("%d", &rate1); scanf("%d", &rate2); ans = rate2 - rate1; if (ans > 0) { printf("+%d", ans); } else { printf("%d", ans); } return 0; }