結果
問題 |
No.224 文字列変更(easy)
|
ユーザー |
|
提出日時 | 2017-06-19 20:23:00 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 427 bytes |
コンパイル時間 | 769 ms |
コンパイル使用メモリ | 102,404 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 20:17:17 |
合計ジャッジ時間 | 1,375 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
import std.stdio, std.string, std.conv, std.algorithm; import std.range, std.array, std.math, std.typecons; int n; string s, t; void main() { scan(n); scan(s); scan(t); iota(n).map!(i => s[i] != t[i]).sum.writeln; } void scan(T...)(ref T args) { auto line = readln.split; foreach (ref arg ; args) { arg = line.front.to!(typeof(arg)); line.popFront(); } assert(line.empty); }