当前位置: 首页 > 工具软件 > Matterhorn > 使用案例 >

【新概念4】【3】Matterhorn man

曹渝
2023-12-01

每天坚持背诵默写新概念

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,太粗心了
}
 类似资料: