結果

問題 No.1940 Escape through + -
ユーザー n_getn_get
提出日時 2022-07-12 13:11:51
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 133 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 17,776 KB
最終ジャッジ日時 2023-09-05 13:24:27
合計ジャッジ時間 2,684 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
12,916 KB
testcase_01 AC 25 ms
13,072 KB
testcase_02 AC 25 ms
12,880 KB
testcase_03 AC 25 ms
12,848 KB
testcase_04 AC 26 ms
12,924 KB
testcase_05 AC 25 ms
12,964 KB
testcase_06 AC 25 ms
13,068 KB
testcase_07 AC 26 ms
12,876 KB
testcase_08 AC 25 ms
12,868 KB
testcase_09 AC 25 ms
12,872 KB
testcase_10 AC 26 ms
12,980 KB
testcase_11 AC 25 ms
12,976 KB
testcase_12 AC 25 ms
13,156 KB
testcase_13 AC 26 ms
12,864 KB
testcase_14 AC 25 ms
12,884 KB
testcase_15 AC 26 ms
12,884 KB
testcase_16 AC 26 ms
13,064 KB
testcase_17 AC 25 ms
13,064 KB
testcase_18 AC 26 ms
12,880 KB
testcase_19 AC 26 ms
13,016 KB
testcase_20 AC 38 ms
13,992 KB
testcase_21 AC 38 ms
13,984 KB
testcase_22 AC 38 ms
14,080 KB
testcase_23 AC 38 ms
13,972 KB
testcase_24 AC 121 ms
17,752 KB
testcase_25 AC 119 ms
17,756 KB
testcase_26 AC 120 ms
17,776 KB
testcase_27 AC 107 ms
17,672 KB
testcase_28 AC 107 ms
17,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(use srfi-1)
(let* [[N (read)][M (read)]]
  (print (if (zero? (mod (fold + (- (read)) (list-tabulate N (^_ (read)))) M)) 'Yes 'No)))
0