結果

問題 No.706 多眼生物の調査
ユーザー BantakoBantako
提出日時 2018-07-07 19:54:35
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 293 bytes
コンパイル時間 1,491 ms
コンパイル使用メモリ 164,564 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-18 14:46:22
合計ジャッジ時間 2,045 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1 ms
4,376 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:7:1: 警告: ISO C++ では型の無い ‘main’ の宣言を禁止しています [-Wreturn-type]
    7 | main(){
      | ^~~~

ソースコード

diff #

#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=int(a);i<int(b);++i)
using namespace std;
typedef long long ll;
int INF = (1LL << 30) - 1;
int MOD = 1e9+7;
main(){
    int N;
    cin >> N;
    rep(i,0,N){
        string s;
        cin >> s;
        cout << s.length() - 2 << endl;
    }
}
0