結果

問題 No.1415 100の倍数かつ正整数(1)
ユーザー Revan QasimzadeRevan Qasimzade
提出日時 2021-03-12 21:17:48
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 595 bytes
コンパイル時間 2,062 ms
コンパイル使用メモリ 162,884 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-22 11:51:37
合計ジャッジ時間 2,362 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 WA -
testcase_02 AC 2 ms
6,944 KB
testcase_03 AC 2 ms
6,944 KB
testcase_04 AC 2 ms
6,944 KB
testcase_05 AC 1 ms
6,940 KB
testcase_06 AC 2 ms
6,944 KB
testcase_07 AC 2 ms
6,944 KB
testcase_08 AC 2 ms
6,944 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 2 ms
6,940 KB
testcase_12 AC 2 ms
6,944 KB
testcase_13 WA -
testcase_14 AC 2 ms
6,944 KB
testcase_15 WA -
testcase_16 AC 2 ms
6,944 KB
testcase_17 WA -
testcase_18 AC 2 ms
6,940 KB
testcase_19 AC 2 ms
6,944 KB
testcase_20 AC 1 ms
6,940 KB
testcase_21 AC 1 ms
6,944 KB
testcase_22 WA -
testcase_23 AC 1 ms
6,940 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:23:16: warning: multi-character character constant [-Wmultichar]
   23 |     if(s[0] == '-1' || s.size() < 3) {
      |                ^~~~

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define FAST ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define pb push_back
#define fixx(n) fixed << setprecision(n)
#define F first
#define S second
#define PI  3.14159265358979323846
#define ll  long long int
#define int ll
#define double long double
const int mod = 1e9 + 7;
const int modd = 998244353;
const int N = 1e5;


signed main()
{

    FAST;
    string s;
    cin >> s;
    if(s[0] == '-1' || s.size() < 3) {
        cout << 0;
        return 0;
    }
    for(int i = 0; i < s.size() - 2; i ++) cout << s[i];
    return 0;
}
0