結果
問題 |
No.2049 POP
|
ユーザー |
![]() |
提出日時 | 2022-08-21 15:48:29 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 387 bytes |
コンパイル時間 | 451 ms |
コンパイル使用メモリ | 39,680 KB |
最終ジャッジ日時 | 2025-01-31 02:31:31 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:27:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 27 | scanf("%d%s", &n, s); | ~~~~~^~~~~~~~~~~~~~~
ソースコード
/* -*- coding: utf-8 -*- * * 2049.cc: No.2049 POP - yukicoder */ #include<cstdio> #include<algorithm> using namespace std; /* constant */ const int MAX_N = 100; /* typedef */ /* global variables */ char s[MAX_N + 4]; /* subroutines */ /* main */ int main() { int n; scanf("%d%s", &n, s); for (int i = 1; i < n - 1; i++) putchar(s[i]); putchar('\n'); return 0; }