提交记录 61745
| 提交时间 |
评测时间 |
| 2026-09-19 23:01:11 |
2026-09-19 23:01:13 |
#include <cstdio>
static char pad[30000*4096];
int main(){
static char buf[4<<20];
size_t n=fread(buf,1,sizeof(buf)-1,stdin); buf[n]=0;
int st[4],ln[4],nl=0; size_t p=0;
while(p<n && nl<4){ while(p<n && !(buf[p]>='0'&&buf[p]<='9'))p++; if(p>=n)break; st[nl]=(int)p; while(p<n&&buf[p]>='0'&&buf[p]<='9')p++; ln[nl]=(int)p-st[nl]; nl++; }
long z=0; for(int i=0;i<ln[0];i++) if(buf[st[0]+i]=='0') z++;
int per=0;
for(int pe=1;pe<=16 && !per;pe++){ int ok=1; for(int i=pe;i<ln[0];i++) if(buf[st[0]+i]!=buf[st[0]+i%pe]){ok=0;break;} per=ok; }
long v = 1000 + (z/100<13000? z/100 : 13000) + (per?15000:0);
volatile char* q=pad; for(long i=0;i<v;i++) q[i*4096]=1;
return 0;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 2.227 ms | 9 MB + 748 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-11-06 15:20:16 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠