結果
| 問題 |
No.396 クラス替え
|
| コンテスト | |
| ユーザー |
neko_the_shadow
|
| 提出日時 | 2016-11-28 00:02:30 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
AC
|
| 実行時間 | 23 ms / 1,000 ms |
| コード長 | 282 bytes |
| コンパイル時間 | 282 ms |
| コンパイル使用メモリ | 5,504 KB |
| 実行使用メモリ | 16,000 KB |
| 最終ジャッジ日時 | 2024-11-27 12:25:04 |
| 合計ジャッジ時間 | 1,617 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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