結果
| 問題 |
No.432 占い(Easy)
|
| コンテスト | |
| ユーザー |
Kura
|
| 提出日時 | 2019-07-27 19:16:01 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 412 bytes |
| コンパイル時間 | 1,998 ms |
| コンパイル使用メモリ | 161,164 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-02 11:09:19 |
| 合計ジャッジ時間 | 4,129 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 14 RE * 8 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int t,l;cin>>t;vector<string> s(t),r(t);
for(int i=0;i<t;i++){
cin>>s[i];
l=s[i].length()-1;
for(int j=l;j>0;j--){
for(int k=0;k<l;k++){
r[i][k]=((s[i][k]-'0')+(s[i][k+1]-'0'))%10+((s[i][k]-'0')+(s[i][k+1]-'0'))/10+'0';
}
for(int k=0;k<l;k++){
s[i][k]=r[i][k];
}
}
cout<<s[i][0]<<endl;
}
}
Kura