結果
| 問題 | No.717 ファッションへのこだわり | 
| コンテスト | |
| ユーザー |  toshiro_yanagi | 
| 提出日時 | 2018-07-28 08:03:15 | 
| 言語 | Nim (2.2.0) | 
| 結果 | 
                                RE
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 296 bytes | 
| コンパイル時間 | 3,362 ms | 
| コンパイル使用メモリ | 66,828 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-01 03:34:03 | 
| 合計ジャッジ時間 | 4,078 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 9 RE * 1 | 
コンパイルメッセージ
/home/judge/data/code/Main.nim(5, 3) Warning: each identifier is a tuple [EachIdentIsTuple]
ソースコード
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
