結果
| 問題 | No.295 hel__world |
| コンテスト | |
| ユーザー |
Kmcode1
|
| 提出日時 | 2015-10-23 23:43:47 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 311 bytes |
| 記録 | |
| コンパイル時間 | 1,524 ms |
| コンパイル使用メモリ | 174,244 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-03 16:11:15 |
| 合計ジャッジ時間 | 2,358 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 4 |
| other | RE * 53 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
string s;
bool ap[26];
long long int ans=0;
int main(){
cin>>s;
for(int i=0;i<s.size();i++){
ap[s[i]-'a']=true;
}
for(int i=0;i<26;i++){
long long int k;
scanf("%lld",&k);
if(ap[i]==false){
continue;
}
ans+=k;
if(ans>100000LL){
puts("hel");
return 0;
}
}
return 1;
}
Kmcode1