結果
| 問題 | No.717 ファッションへのこだわり |
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2018-07-28 08:03:15 |
| 言語 | Nim (2.2.6) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 296 bytes |
| 記録 | |
| コンパイル時間 | 2,787 ms |
| コンパイル使用メモリ | 68,920 KB |
| 実行使用メモリ | 6,144 KB |
| 最終ジャッジ日時 | 2026-03-21 21:08:27 |
| 合計ジャッジ時間 | 3,248 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 RE * 1 |
ソースコード
import strutils, sequtils, algorithm let tmp = map(split readLine stdin, parseInt) N, M = (tmp[0], tmp[1]) S, T = sorted(readLine stdin, cmp) var i, cnt = 0 while S[i] == 'A' and T[i] == 'A': cnt += 1 i += 1 i = 1 while S[^i] == 'B' and T[^i] == 'B': cnt += 1 i += 1 echo cnt
toshiro_yanagi