JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

The Biggest Water Problem

发布时间 2024-01-07 00:07:37作者: isomer莫柒瑜

地址

#include<bits/stdc++.h>
using namespace std;

typedef long long ll;

int main()
{
    ll n;
    cin>>n;
    ll sum=0;
    while(n>10){
        ll sum=n;
        ll d=0;
        while(sum){
            d+=sum%10;
            sum/=10;
        }
        n=d;
    }
    cout<<n;
    return 0;
}
    本栏目推荐文章
  • AtCoder World Tour 2022 B The Greatest Two
  • Introducing the incident management
  • A connection was successfully established with the server but then an error
  • An improved LSTM-based model for identifying high working intensity load segments of the tractor load spectrum
  • web项目启动时dubbo报错: No provider available for the service com.davidhu.shopguide.api.service.UserEventService from the url zookeeper ://localhost:2181/org.apache.du
  • 初中英语优秀范文100篇-056I have the courage to accept the challenge-我有勇气接受挑战
  • org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message
  • redis报错MISCONF Errors writing to the AOF file: No space left on device,磁盘满无法写入数据报错
  • [linux kernel] struct pid && the way the kernel used to cast uint32_t pid to struct task_struct
  • Redis - (error) WRONGTYPE Operation against a key holding the wrong kind of value
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们