QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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;
}
Details
Tip: Click on the bar to expand more detailed information
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