結果
問題 |
No.785 色食い虫
|
ユーザー |
![]() |
提出日時 | 2024-09-25 00:44:11 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 502 bytes |
コンパイル時間 | 3,222 ms |
コンパイル使用メモリ | 245,584 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-25 00:44:15 |
合計ジャッジ時間 | 4,247 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #else #define Debug(...) void(0) #endif #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { array<int, 3> a = { 16, 16, 16 }; rep(i, 3) { string s; getline(cin, s); if (s == "NONE") continue; a[i] -= count(s.begin(), s.end(), ',') + 1; } Debug(a); cout << a[0] * a[0] * a[1] * a[1] * a[2] * a[2] << endl; return 0; }