結果
問題 | No.485 方程式のお勉強 |
ユーザー |
![]() |
提出日時 | 2023-06-29 17:30:41 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 262 bytes |
コンパイル時間 | 389 ms |
コンパイル使用メモリ | 29,184 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 08:04:47 |
合計ジャッジ時間 | 1,057 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
ソースコード
#include <stdio.h>#include <stdlib.h>#include <stdbool.h>#include <math.h>int main(){int k = 0;int s = 0;int ans = 0;scanf("%d", &k);scanf("%d", &s);if (s % k == 0){printf("%d\n", s / k);return 0;}printf("NO\n");return 0;}