結果
| 問題 | No.494 yukicoder |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-19 19:29:01 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 353 bytes |
| 記録 | |
| コンパイル時間 | 199 ms |
| コンパイル使用メモリ | 39,808 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-06 13:14:02 |
| 合計ジャッジ時間 | 1,142 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
ソースコード
#include <stdio.h>
int main(){
//input
char S[9+1];
scanf("%s",S);
//char total of "yukicoder"
int t1 = 'y'+'u'+'k'+'i'+'c'+'o'+'d'+'e'+'r';
//char total of S
int t2 = 0;
for (int i = 0;i < 9;i++){
if (S[i] != '?'){
t2 += S[i];
}
}
//output
printf("%c\n",t1-t2);
return 0;
}