結果
問題 |
No.432 占い(Easy)
|
ユーザー |
👑 |
提出日時 | 2020-02-08 00:34:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 444 bytes |
コンパイル時間 | 679 ms |
コンパイル使用メモリ | 65,228 KB |
実行使用メモリ | 1,431,956 KB |
最終ジャッジ日時 | 2024-09-25 08:29:22 |
合計ジャッジ時間 | 7,081 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | MLE * 1 -- * 3 |
other | -- * 22 |
ソースコード
#include <iostream> using namespace std; int main(){ int t;cin>>t; while(t--){ string s;cin>>s; string tmps = ""; while(s.size() != 1){ for(int i = 0; s.size()-1 > i; i++){ int z = (((s[i]-'0')+(s[i+1]-'0'))%10); if((s[i]-'0')+(s[i+1]-'0') > 9)z++; tmps.push_back(z+'0'); } s = tmps; } cout << s << endl; } }