結果
問題 | No.485 方程式のお勉強 |
ユーザー |
![]() |
提出日時 | 2017-08-10 02:53:14 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 267 bytes |
コンパイル時間 | 920 ms |
コンパイル使用メモリ | 101,964 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 21:23:44 |
合計ジャッジ時間 | 1,706 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
ソースコード
import std.algorithm;import std.array;import std.conv;import std.math;import std.stdio;import std.string;void main() {auto xs = readln.split.map!(to!int);if (xs[1] % abs(xs[0]) == 0)writeln(xs[1] / xs[0]);elsewriteln("NO");}