提交记录 61745


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_v41_0919 1004. 【模板题】高精度乘法 Wrong Answer 0 2.227 ms 9964 KB C++17 689 B
提交时间 评测时间
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;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #12.227 ms9 MB + 748 KBWrong AnswerScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2026-11-06 15:20:16 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠