QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#699343 | #7117. Quine | ChenHanzhang | 100 ✓ | 0ms | 3724kb | C++14 | 260b | 2024-11-02 08:27:22 | 2024-11-02 08:27:22 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int main(){
char*s="#include<bits/stdc++.h>%cusing namespace std;%cint main(){%c char*s=%c%s%c;%c printf(s,10,10,10,34,s,34,10,10,10);%c return 0;%c}";
printf(s,10,10,10,34,s,34,10,10,10);
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3724kb
input:
output:
#include<bits/stdc++.h> using namespace std; int main(){ char*s="#include<bits/stdc++.h>%cusing namespace std;%cint main(){%c char*s=%c%s%c;%c printf(s,10,10,10,34,s,34,10,10,10);%c return 0;%c}"; printf(s,10,10,10,34,s,34,10,10,10); return 0; }
result:
ok 7 lines