Find Jobs
Hire Freelancers

Cryptarithms

$10-30 USD

已完成
已发布将近 3 年前

$10-30 USD

货到付款
// Loop over the columns using the assumption that the sum word is at least as long as any addend int carry = 0; for (int i = 0; i < [login to view URL]().size(); ++i) { // Loop over all the addends int sum = carry; for (int j = 0; j < [login to view URL]() - 1; ++j) { // Check if the addend has a character in this column if (i >= words[j].size()) { // Nope continue; } // If the character at words[j][words[j].size() - 1 - i] has multiple options, we can stop and // say from the addition, it is a partial solution if (…) { return partial; } // Add the character at …(same as above)… to the sum } // Check that the sum % 10 matches the correct letter of the sum word, // return invalid if not (and partial if the letter is unknown) carry = sum / 10; } // If you got here, all the sums seem to line up, make sure the carry is 0 to be sure then conclude either valid or invalid
项目 ID: 30093887

关于此项目

1条提案
远程项目
活跃3 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
Heyy I am C++ coder and I have experience of more than 5years.I have read your description and would like to work for you.I have already implemented many algorithms and developed many games and management systems using oop and data structures concept and I would like to work for you also Message me so that we can start this Regards Hamza
$20 USD 在1天之内
4.9 (30条评论)
4.4
4.4

关于客户

SAUDI ARABIA的国旗
Dee, Saudi Arabia
0.0
0
付款方式已验证
会员自5月 5, 2021起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。