刚刚FE,现在RE?

ljy2022 2022-07-29 9:53:52 13

#include<bits/stdc++.h> using namespace std; struct j{ char g[1000]; int m; }f[11]; int main(){ int a; cin>>a; for(int i=1;i<=a;i++){ cin>>f[i].g; f[i].m=strlen(f[i].g); } for(int i=1;i<=a;i++){ for(int k=0;k<f[i].m;k++) cout<<f[i].g[k]; cout<<endl; } return 0; }

{{ vote && vote.total.up }}

共 3 条回复

ljy2022

看着挺高级,但我没学  ̄へ ̄

root 站长

写文件操作,syzoj对FE和RE判断是不很准确!

root 站长
freopen("copycat.in", "r", stdin);
freopen("copycat.out", "w", stdout);