結果
問題 |
No.313 π
|
ユーザー |
|
提出日時 | 2015-12-11 22:37:36 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 514 bytes |
コンパイル時間 | 539 ms |
コンパイル使用メモリ | 60,920 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-15 08:27:17 |
合計ジャッジ時間 | 1,638 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 32 |
ソースコード
#include <string> #include <iostream> #include <cmath> #include <fstream> using namespace std; int a[10] = { 1954, 1997, 1986, 1987, 2043, 2082, 2017, 1953, 1962, 2020 }; int b[10]; int main() { char cc; for (int i = 0; i < 20002; i++) { cc = getchar(); if(cc != '.') b[cc - '0']++; } int g = 0; int l = 0; for (int i = 0; i < 10; i++) { cout << a[i] << " - " << b[i] << endl; if (a[i] < b[i]) { l = i; } if (a[i] > b[i]) { g = i; } } cout << l << " " << g << endl; return 0; }