結果
| 問題 |
No.1199 お菓子配り-2
|
| コンテスト | |
| ユーザー |
Саид Абдулаев
|
| 提出日時 | 2020-08-28 21:35:11 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,768 bytes |
| コンパイル時間 | 3,247 ms |
| コンパイル使用メモリ | 215,440 KB |
| 最終ジャッジ日時 | 2025-01-13 16:44:13 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | WA * 45 |
ソースコード
/**
* author: said_v15
**/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
//#include <__msvc_all_public_headers.hpp>
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#pragma GCC optimization ("unroll-loops")
typedef long long ll;
#define press_F_to_pay_respect ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
#define forn for(int i=0;i<n;i++)
#define fore(i,a,b) for(int i = a; i < (b); i++)
#define pb push_back
#define pob pop_back()
#define mp make_pair
#define sc second
#define f first
#define th third
#define ld long double
#define kek cout<<"\n";
#define rep(i,a,b) for(int i=a;i<b;i++)
#define all(v) ((v).begin()), ((v).end())
#define halt {cout<<"NO"; return 0;}
const ll MOD = 1e9 + 7;
const ll MOD1 = 998244353;
const int MAXN = 2000100;
const int INF = 1e8;
const ll LL_INF=1e18;
const double pi=3.1415926535;
using namespace std;
int divide(int a, int b)
{
return (a+b-1)/b;
}
int main()
{
#if defined(_DEBUG)
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
press_F_to_pay_respect;
// cout << fixed << setprecision(12) << ans;
// string al = "abcdefghijklmnopqrstuvwxyz";
int questions=1;
// cin>>questions;
while(questions--)
{
int n,m;
cin>>n>>m;
ll ans=0;
forn
{
ll cnt=0;
for(int j=0;j<m;j++)
{
int a;
cin>>a;
cnt+=a;
}
ans=max(ans, cnt) ;
}
cout<<ans;
kek;
}
// !!! LOOK AT NUMBER OF QUESTIONS IN A PROBLEM !!! (cin>>questions)
// cout <<"Runtime is:"<<clock() * 1.0 / CLOCKS_PER_SEC <<endl;
return 0;
}
Саид Абдулаев