結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
![]() |
提出日時 | 2019-07-20 14:22:56 |
言語 | Nim (2.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 283 bytes |
コンパイル時間 | 2,758 ms |
コンパイル使用メモリ | 64,896 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-02 05:53:44 |
合計ジャッジ時間 | 3,635 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 WA * 14 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport] /home/judge/data/code/Main.nim(1, 17) Warning: imported and not used: 'strutils' [UnusedImport]
ソースコード
import sequtils,strutils var a1 = stdin.readline a2 = stdin.readline ans = 0 a1 &= a2 for i in 0..a1.high: for j in 0..a1.high: if i + j > a1.high: break if a1[i + j] != a1[i]: break ans = max(j + 1, ans) echo ans