結果
| 問題 | No.396 クラス替え |
| コンテスト | |
| ユーザー |
neko_the_shadow
|
| 提出日時 | 2016-11-28 00:02:30 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
AC
|
| 実行時間 | 18 ms / 1,000 ms |
| コード長 | 282 bytes |
| 記録 | |
| コンパイル時間 | 140 ms |
| コンパイル使用メモリ | 7,972 KB |
| 実行使用メモリ | 16,384 KB |
| 最終ジャッジ日時 | 2026-05-21 18:53:34 |
| 合計ジャッジ時間 | 3,781 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
(define (f n m t)
(let1 g (modulo t (* m 2))
(if (< g m)
g
(- (- (* 2 m) 1) g))))
(define (MAIN)
(let* ((n (read))
(m (read))
(x (read))
(y (read)))
(if (= (f n m (- x 1)) (f n m (- y 1)))
"YES"
"NO")))
(print (MAIN))
neko_the_shadow