結果
問題 | No.1329 Square Sqsq |
ユーザー |
|
提出日時 | 2021-01-08 21:21:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 719 bytes |
コンパイル時間 | 1,680 ms |
コンパイル使用メモリ | 188,576 KB |
最終ジャッジ日時 | 2025-01-17 11:06:35 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:28:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 28 | scanf("%s", s); | ~~~~~^~~~~~~~~
ソースコード
#include <bits/stdc++.h>using namespace std;#define REP(i, n) FOR(i, 0, (n))#define FOR(i, a, b) for(int i=(a); i<(b); i++)#define LAR(a, b) ((a)=max((a),(b)))#define SML(a, b) ((a)=min((a),(b)))using ll = long long;using ld = long double;using vi = vector<int>;using vl = vector<ll>;using pii = pair<int, int>;using vpii = vector<pair<int, int>>;template<typename T>using pque = priority_queue<T, vector<T>, greater<T>>;#define PB push_back#define EB emplace_back#define MP make_pair#define ALL(a) (a).begin(), (a).end()#ifdef LOCAL_DEBUG#define DEBUG(...) printf(__VA_ARGS__)#else#define DEBUG(...)#endifchar s[112345];int main(){scanf("%s", s);printf("%d\n", (int)((strlen(s)+1)/2));}