結果
| 問題 |
No.509 塗りつぶしツール
|
| コンテスト | |
| ユーザー |
Bantako
|
| 提出日時 | 2018-05-27 09:21:14 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 275 bytes |
| コンパイル時間 | 585 ms |
| コンパイル使用メモリ | 63,728 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 18:23:41 |
| 合計ジャッジ時間 | 1,454 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 16 |
コンパイルメッセージ
main.cpp:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
5 | main(){
| ^~~~
ソースコード
#include<stdio.h>
#include<string.h>
#include<iostream>
using namespace std;
main(){
string S;
cin >> S;
int num[] = {3,2,2,2,3,2,3,2,4,3};
int count = 0;
for(int i = 0;i < S.size();i++){
count += num[S[i]-'0'];
}
printf("%d\n",count+1);
}
Bantako