【新概念4】【3】Matterhorn man

每天坚持背诵默写新概念

Modern alpinists try to climb mountains by a route which will give them a good sport,and the more difficult it is ,the more highly it is regarded.In the pioneering days,however,this was not the case at all.Early climbers were looking for the easiest way to go to the top,bacause the summit is the prize they sought,especially if it had never been attained before.It is true that during their exploration they often faced difficulties and dangers of the most perilous nature,equiped (equipped)in a way (manner) that would make a modern climber shudder at the thought,but they did not go out of their way to court such excitement.They had a single aim,a solitary goal–the top!

It is hard for us to realise nowadays how difficult it was for pioneers,except for one or two places such as Zermatt and Chamonix,which had rapidly become popular.Alpine villages tended to be impoverished settlements cut off from civilization by the high mountains.Such inns as there were were generally dirty and flea-ridden;the food simply local cheese accompanied by bread often 12 months old,all washed down with coarse wine.Often a valley boasted no inn at all,and climbers found shelter wherever they could–sometimes with local priest(usually as poor as their parishioners),or shepherds and cheese-makers.Invariably the background was the same:dirt and poverty,and very uncomfortable.For men accustommed(accustomed) to eating "seven-course"dinners and sleeping between fine linen sheets at home,the change at (to)the Alps must have been very hard indeed.

#include<iostream>
using namespace std;
int s1,s2,s3;
bool flag = 1;
int main()
{
    freopen("1.txt","r",stdin);
    freopen("2.txt","w",stdout);
    int k;cin >> k;
    for(int i = 10000;i <= 30000;i++)
    {
        s1 = i / 100;
        s3 = i % 1000;
        s2 = (i/10)%1000;
        if(s1%k==0&&s2%k==0&&s3%k==0)
            {
                cout << i <<endl;
                flag = 0;
            }
    }
    if(flag)
        cout << "NO" ;//实在没想到是因为No打成了NO,太粗心了
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值