結果
| 問題 | 
                            No.485 方程式のお勉強
                             | 
                    
| コンテスト | |
| ユーザー | 
                             cra77756176
                         | 
                    
| 提出日時 | 2022-11-28 00:05:54 | 
| 言語 | Rust  (1.83.0 + proconio)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 1 ms / 2,000 ms | 
| コード長 | 366 bytes | 
| コンパイル時間 | 13,415 ms | 
| コンパイル使用メモリ | 391,404 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-10-04 16:15:41 | 
| 合計ジャッジ時間 | 14,247 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 13 | 
ソースコード
use std::io;
fn main() {
    let mut input = String::new();
    io::stdin().read_line(&mut input).ok();
    let mut input = input.split_whitespace();
    let a = input.next().unwrap().parse::<i64>().unwrap();
    let b = input.next().unwrap().parse::<i64>().unwrap();
    if b % a == 0 {
        println!("{}", b / a);
    } else {
        println!("NO");
    }
}
            
            
            
        
            
cra77756176