编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#1340 #996. 相似字符串 Compile Error 0 0 ms 0 K C / 441 B t330026009 2023-10-15 16:10:08
显示原始代码
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main() {
    int n;
    string s, t;
    cin >> n;
    cin >> s;
    cin >> t;
    for (int i = 0; i < n; i++) {
        int a, b;
        a = s[i];
        b = t[i];
        // printf("a=%c\tb=%c\n",a,b);
        if ((a == b) || (a == 'l' && b == '1') || (a == '1' && b == 'l') || (a == '0' && b == 'o') ||
            (a == 'o' && b == '0')) {
        } else {
            printf("No");
            return 0;
        }
    }
    // printf("%c\n",s[2]);
    printf("Yes\n");
    return 0;
}

编译信息

/sandbox/1/a.c:1:9: fatal error: 'iostream' file not found
#include<iostream>
        ^~~~~~~~~~
1 error generated.