結果
| 問題 | No.509 塗りつぶしツール |
| コンテスト | |
| ユーザー |
taba
|
| 提出日時 | 2017-05-18 01:50:18 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 275 bytes |
| 記録 | |
| コンパイル時間 | 573 ms |
| コンパイル使用メモリ | 86,496 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-06 11:16:53 |
| 合計ジャッジ時間 | 1,413 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 16 |
ソースコード
#include <cstdio>
#include <random>
#include <vector>
#include <algorithm>
#include <array>
using namespace std;;
int main(){
int t[]={3,2,2,2,3,2,3,2,4,3},a=1;
char s[20];
int _=scanf("%s",s);
for(int i=0;s[i];i++){
a+=t[s[i]-'0'];
}
printf("%d\n",a);
return 0;
}
taba