結果
| 問題 | No.2878 𝕀𝔾ℕ𝕀𝕋𝕀𝕆ℕ |
| コンテスト | |
| ユーザー |
shobonvip
|
| 提出日時 | 2024-09-20 01:18:15 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 2,000 ms |
| コード長 | 395 bytes |
| 記録 | |
| コンパイル時間 | 1,064 ms |
| コンパイル使用メモリ | 212,016 KB |
| 実行使用メモリ | 16,640 KB |
| 最終ジャッジ日時 | 2026-07-05 17:46:08 |
| 合計ジャッジ時間 | 2,152 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 |
コンパイルメッセージ
main.cpp:6:12: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts' [-Wc++20-extensions]
6 | bool chmin(auto &a, auto b){ return a > b ? a = b, 1 : 0; }
| ^~~~
main.cpp:6:21: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts' [-Wc++20-extensions]
6 | bool chmin(auto &a, auto b){ return a > b ? a = b, 1 : 0; }
| ^~~~
main.cpp:7:12: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts' [-Wc++20-extensions]
7 | bool chmax(auto &a, auto b){ return a < b ? a = b, 1 : 0; }
| ^~~~
main.cpp:7:21: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts' [-Wc++20-extensions]
7 | bool chmax(auto &a, auto b){ return a < b ? a = b, 1 : 0; }
| ^~~~
ソースコード
#include<bits/stdc++.h>
#define rep(i,s,n) for (int i = (int)(s); i < (int)(n); i++)
#define all(v) begin(v),end(v)
using namespace std;
using ll = long long;
bool chmin(auto &a, auto b){ return a > b ? a = b, 1 : 0; }
bool chmax(auto &a, auto b){ return a < b ? a = b, 1 : 0; }
int main(){
cin.tie(0)->sync_with_stdio(0);
string s = "IGNITION";
int i; cin >> i;
cout << s[i-1] << '\n';
}
shobonvip